graphql-mutation Questions
1
Solved
I'm running into the following error while trying to define refetchQueries in my useMutation hook.
Type 'DocumentNode' is not assignable to type 'string | PureQueryOptions'.
Property 'query' is mi...
Greg asked 31/7, 2021 at 10:48
1
Solved
I have a very basic graphql mutation in the frontend that I send to my backend. I am using this code on the by graphql-request as a guide.
With primitives it works:
const mutation = gql`
mutation ...
Dinka asked 20/12, 2020 at 14:55
1
We have a GraphQL mutation with a byte array (Blob) field. How can I use tools like Insomnia or GraphQL playground to send byte array data to test the API?
mutation {
saveSomething(something: {
...
Aeriela asked 11/8, 2019 at 2:16
1
Solved
I have generated a simple GraphQL API on AWS AppSync (using CLI) from this model:
type WalletProperty @model {
id: ID!
title: String!
}
This generated a CreateWalletProperty, UpdateWalletPropert...
Pee asked 2/9, 2020 at 9:23
1
Solved
When I create my Owner via graphql-playground it works fine,
but my test fail and response me that 'body.data.createOwner is undefined', there no data.
// owner.e2e.spec.ts
describe('Owner test (e2...
Albinaalbinism asked 8/7, 2020 at 12:12
1
Solved
I am creating a mutation which works but I am not sure if it is working the way that I think it is. However, I would like to know what is the order of execution?
Async
Sync Top to Bottom
Sync ran...
Brandybrandyn asked 17/6, 2020 at 15:20
2
Solved
I happened to send 2 separated requests to a Graphql API (Python3 + Graphene) in order to:
Create an object
Update another object so that it relates to the created one.
I sensed this might not ...
Pallette asked 21/4, 2020 at 9:25
1
Create/remove/update/delete (CRUD) mutations usually return the corresponding database model instance as output type of the mutation. However for non-CRUD mutations I'd like to define business logi...
Fleeting asked 4/2, 2020 at 7:14
1
© 2022 - 2024 — McMap. All rights reserved.