We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, we are only supporting mutation over a single object. For example:
input ProductInput { name: String color: String } type Product { id: ID name: String color: String } type Mutation { setProduct(id: ID, product: ProductInput): Product @topic(name: "product-topic") }
and we can do the mutation like this:
mutation { setProduct(id:"abc", product: {name: "test-1", color: "red"}) { id } }
However, we need to support mutations with lists so we can ingest a list of objects over a single call:
input ProductInput { name: String color: String } type Product { id: ID name: String color: String } type Mutation { setProduct(ids: [ID], products: [ProductInput]): [Product] @topic(name: "product-topic") }
mutation { setProduct(ids:["abc", "efg"], product: [{name: "test-1", color: "red"}, {name: "test-2", color: "blue"}]) { id } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, we are only supporting mutation over a single object. For example:
and we can do the mutation like this:
However, we need to support mutations with lists so we can ingest a list of objects over a single call:
and we can do the mutation like this:
The text was updated successfully, but these errors were encountered: