-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relations not loading after mutation #82
Comments
@ryanvanderpol I think what is wrong is that you need to do two things. First, separate out your find and patch query, secondly add an EAGER to your patch to pull in the pets, and third use the
|
Thanks, @DaKaZ. in my OP I noted that a I guess my question is, why can't I get a mutation to work like the built-in Objection.js types? Using the built-in |
This might not be ideal depending on your project, but you can refetch the query after performing the mutation. Apollo boost has this an option when making a query. If performance is a concern, and you don't want to |
I have a mutation defined as follows
Which I call from my app like
The mutation part works fine, but when the data is returned from the server, it's missing the
pets
object and everything below it. Interestingly (maybe),pets
actually comes back asnull
rather than being omitted completely, so it seems like maybe it tried to complete the relation, but nothing came back.Any idea what could be going on here?
The text was updated successfully, but these errors were encountered: