-
Notifications
You must be signed in to change notification settings - Fork 29
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
Mutation sends field in attributes, not relationships #21
Comments
Hi @timothyjoh , I think you'll need to call |
But the proper URL for my API is "node/article" so do I need to reflect that in the schema that way? |
Hey @timothyjoh, so a cursory glance at your example leads be to believe there might be a couple things going on.
schema = {
articles: {} // -> applied to queries making requests to "/articles"
}
schema = {
articles: {
type: 'article'
}
}
schema = {
article: {
type: 'article' // or 'articles' if you use plural types
}
}
|
Closing due to inactivity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I might be doing something wrong here, but here is my schema:
And here is my mutation code:
It always ends up sticking the
field_template
in the data.attributes instead of in the data.relationships section of the request.I am using Drupal as a backend, and wondering if I am missing something you can see.
The text was updated successfully, but these errors were encountered: