Questions tagged [graphql-mutation]

129 questions
0
votes
1 answer

AWS App Sync Subscriptions over MQTT is not supported

While using AWS AppSync SDK to add subscription its returning this error, but I got the result in AWS console. errorType: "BadRequestException" message: "Subscriptions over MQTT is not supported." I have seen this similar question and tried the…
0
votes
2 answers

How to execute a mutation for Graphql in a Java Client Code?

This is my schema type Mutation{ createUser(username: String!, email: String!, tempPassword: String!): ComplexCallResult @aws_iam } I am using AmazoneWebServicesClient to execute queries. For query which is already defined in the schema, I…
Manushi
  • 597
  • 1
  • 7
  • 26
0
votes
0 answers

GraphQL mutation on Form Click not triggering

I am trying to call Apollo Mutation Hook on form submit to create a new record in the database. export default function NewJobForm() { const { loading, error, data } = useQuery(GET_LOC_CAT_TYPE_QUERY); const [newJob] =…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
0
votes
1 answer

Call a GraphQL mutation on connected objects (case: React and AWS)

I have created this GraphQL schema and passed it to AppSync via Amplify: type Member @model { id: ID! name: String! } type Team @model { id: ID! title: String! members: [Member] } and AWS Amplify has generated the following mutation for…
0
votes
1 answer

Amplify Mutation connection between two type @model

I am trying to pass a product object to an invoice table so in my case I guess it is a one-to-many where one invoice has multiple products. I tried to do something like this: the schema: type Product @model @key(name: "productIDIndex", fields:…
0
votes
1 answer

React Apollo client multiple mutations

I have a datasheet style table with list of records, that need updating their values. I would like to run a single Submit and in my GraphQL send an array of records as a single argument to the set query. They are actually MongoDB documents. As in…
Cem
  • 1
  • 1
  • 3
0
votes
1 answer

Graphql_flutter mutation running on playground doesn't work on running device/emulator

During my project development, I'm using flutter with graphql, for testing purpose tried mutation on playground and passed the test, but on device and emulator getting error response with 5xx, I know this is "server side" error but tested same…
0
votes
1 answer

grandstack add mutation with relationship

i'm able to call a mutation in order to insert a node, but what if i want to insert the relationship with another node as well? I saw that the grandstack has generated some mutations of this type: AddGroupUsers How can i call this mutation togeder…
pinale
  • 2,060
  • 6
  • 38
  • 72
0
votes
0 answers

Can you update existing data with an Array of objects using a mutation serverside with Apollo GraphQL?

Little background: I'm building a Fantasy FPL App for my colleagues at work so we can have our own app with our own data and league. I'm using Vue.js on the FE and GraphQL + Apollo + MongoDB for the BE. To clarify the question: I want to update my…
0
votes
1 answer

Azure CosmosDB/Nodejs - Entity with the specified id does not exist in the system

I am trying to delete and update records in cosmosDB using my graphql/nodejs code and getting error - "Entity with the specified id does not exist in the system". Here is my code deleteRecord: async (root, id) => { const { resource: result } =…
user837593
  • 337
  • 1
  • 5
  • 25
0
votes
1 answer

TypeORM TypeGraphQL OneToOne relation foreign key not working

I am trying to create a bi-drectional OneToOne relation with TypeORM and TypeGraphQL. I have two entities an Account.ts and Details.ts. Right now, I can create Details in context of the account and it successfully populate the Account id from…
A Webb
  • 633
  • 1
  • 8
  • 16
0
votes
0 answers

Variable \"$data\" of required type "Type" was not provided

I have a survey creation mutation and I want to create nested records with survey creation mutation. I am using query variables to set the data for mutation. When I create only survey without nested attributes it works successfully but when I add…
0
votes
1 answer

Can we change/alter nested mutation using Laravel events?

I want to alter the mutation using Laravel Creating event. I want to fetch task ID from key that is coming from front end. And then i want to add this ID in replace of key so that my task will be create automatically using lighthouse structure. Here…
0
votes
0 answers

Graphql Mutation doesn't execute on material table icons

({ icon: () => , tooltip: 'Delete User', onClick: (event, rowData) => { …
Ram
  • 356
  • 2
  • 14
0
votes
1 answer

GraphQL how to create a schema from file separated mutations and queries

Say I have a structure like this: src/ ├── user/ │ ├── mutation.js │ ├── query.js ├── cars/ │ ├── mutation.js │ ├── query.js └── schema.js How can I create a Schema from user's mutation.js and query.js, and cars' mutation.js and query.js…
ERP
  • 325
  • 2
  • 11
1 2 3
8 9