Questions tagged [graphql-mutation]
129 questions
1
vote
0 answers
Nested Graphql input object types
I am trying to add graphql input object type inside another graphl input object type.
In the longer run i happen to have complex input types nested in each other, rather than plain GraphqlJSON objects (which i really want to avoid)
it gives the…

Amaar Hassan
- 338
- 2
- 7
1
vote
0 answers
graphql mutation & couchbase
I'm starting working with graphQL with couchbase, and I have a small problem when I run a mutation, what I'm doing is save 2 object:
key: email@email.it
{
type: 'credential',
user_id: 'xxxx-xxxx-xxxx-xxxx',
password: 'jknelkjf'
}
key:…

francesco.venica
- 1,703
- 2
- 19
- 54
1
vote
1 answer
react-apollo mutation component sends empty strings as null
I will reduce the issue to a simple example. I have a table component rendering a table with queried data. I also have a small form that allows users to input data into the table. The issue i am having is that the default value of the input fields…

xunux
- 1,531
- 5
- 20
- 33
0
votes
0 answers
clientMutationId field no longer working in my Ruby GraphQL schema
Previously the mutation was defined like this:
class Mutations::SomeMutation < Mutations::BaseMutation
null false
argument :some_argument, String, required: true
field :some_field, String, null: false
def resolve(some_argument:)
...
…

ThriceGood
- 1,633
- 3
- 25
- 43
0
votes
0 answers
how to get the response of a graphQl call in Selenium
I need to get the response of a graphQl call that is executed in a selenium test (Java) in order to get the id that is generated in the database.
Example:
mutation {
createWidget(designID: 701, contentID: 1935, layoutPos:…

JaviAbos
- 3
- 4
0
votes
0 answers
NestJS + GraphQL mutation: how to return asked relations?
Here is a mutation to create a new Company:
mutation CompanyCreate($input: RegisterInput!) {
companyCreate(input: $input) {
...CompanyFields
}
}
Creating this company triggers also the creation of other entities, such as User These entities…

frinux
- 2,052
- 6
- 26
- 47
0
votes
1 answer
Looking for the right way to create and update item with GraphQL in Amplify / React
I'm new to Amplify, React, and GraphQL. I'm looking to figure out the right way to make a mutation that has an @hasMany relationship between tables (for context, I am using a multi-table solution since that seems to work best with Amplify).
I'm…

femmedecentral
- 11
- 2
0
votes
1 answer
GraphQL: Call a mutation with objects as inputs
This is the schema.graphql that I have:
type Items @model {
id: ID!
ItemName: String!
ItemDescription: String
ItemCategory: Categories
ItemEvents: [Events]
ItemAttributes: [Attributes]
createdAt: AWSDateTime
…

MizzyV
- 11
- 3
0
votes
1 answer
AWS Graphql API mutation does not update DataStore
I'm not able to update the existing data on AWS Graphql API. Here are my files.
Schema
type PersonalInfo @model @auth(rules: [{allow: private}]) {
id: ID!
firstName: String!
middleName: String
lastName: String!
dateOfBirth: String!
…

Hamid
- 2,852
- 1
- 28
- 45
0
votes
1 answer
Azure APIM Synthetic GraphQL Mutation Resolver
hope you are doing well !
I have been trying to write a GraphQL Mutation Resolver for a REST POST request in Azure APIM but nothing is working so far.
The REST call takes an object with firstName, lastName, username, password and returns an object…

ElyAoun
- 66
- 4
0
votes
1 answer
How to pass different Apollo client to useMutation graphql
I am new to graphql and react. Currently one apollo client is used by default for all useQuery and useMutation which was intialized via ApolloProvider.
Now I have to pass different apollo clients (having different uri) to different queries and…

iRunner
- 1,472
- 6
- 25
- 40
0
votes
0 answers
Getting Timeout error(504) from an https POST endpoint in swagger-ui
I am using POST api built by different team in our application and since its taking more than 1 minute to return a response our graphql mutation is returning Internal_Server_error…

SlackOff
- 3
- 2
0
votes
0 answers
how i can send array in graphql request
I'm trying to send graphql request with an array in the query is there any way I can do that?
query Filter($user: [String]) {
filter(user: $user) {
id
}
}
and this array that I want to send
user = [{…

amghare
- 101
- 8
0
votes
0 answers
Graphql mutation containing an input - Possible Unhandled Promise Rejection
I'm pretty new to graphql and react native. I'm working on a project where I am trying to create a sign-up screen I'm currently getting a 400 error stating: Possible Unhandled Promise Rejection. I was able to get this screen to work earlier, but I'm…

pelotador.1
- 195
- 1
- 12
0
votes
0 answers
Graphql API mutation endpoint - incoming query data is shown empty always
@Mutation((returns) => StyleOperationHead)
async saveStyleOperationHead(
@Args('styleOperationHeadData')
styleOperationHeadData: StyleOperationHeadInputDto,
): Promise {
console.log(styleOperationHeadData)
return {
…

Sithija Piyuman Thewa Hettige
- 1,768
- 20
- 26