Most voted "graphql" questions
Graphql is a data query language used to perform requests and deliver information to web and mobile applications.
Learn more…32 questions
Sort by count of
-
17
votes3
answers5190
viewsWhat is the difference between Graphql and REST?
People have commented a lot about the use of Graphql and with that, some comments that will replace this rise that we have of REST API’s. What is the difference between the two (Graphql and REST)?…
-
5
votes1
answer462
viewsSchema modularization using Adonisjs and Graphql
I have a project where I am using Adonisjs and Graphql, I created the schema and defined the darlings, mutations, types. But everything was centered on just one file, so I decided to modularize the…
-
4
votes0
answers1111
viewsHow to consume a Graphql API (https://api.loggi.com)
I would like to understand know and know opinions to apply in a project urgently... I currently have a shopping website and I need to use the loggi company API which is a distribution company the…
-
3
votes1
answer63
viewsGraphql error with Sequelize
I have an error in the return of a Mutation. Apparently he can’t read the id field, but the object I send to Graphql has this field, and as I’m new to Graphql I don’t understand what the error…
-
2
votes1
answer69
viewsUpdate on mongoDB is deleting the rest of the document
I have a collection structured like this: { "_id": i43h21n5lk2354, "createdAt" : ISODate("2018-08-19T16:56:31.555Z"), "services" : { "facebook" : { .... name: "Michael Jackson" .... .... } I want to…
-
2
votes0
answers38
viewsC# in Graphql: directly include an object in Type and also Inputtype
I have a class of users: public class Usuario { public int id { get; set; } public string nome { get; set; } } To use the above object in Graphql, I wrote the following code: public class…
-
1
votes0
answers64
viewsSequelizedatabaseerror - Syntax error when creating an ARRAY field in Graphql with sequelize and mysql
I am developing a basic API for blog graphql with Sequelize and Mysql as a database, everything works perfectly until I try to create a new keyword field of the Array type, for blog posts, I believe…
-
1
votes0
answers62
viewsRepository.findAndCount in related table column in typeorm/graphql
I am using typeorm and graphql in my api and want to make a findAndCount in a table called corresponding_users that has a one to one relation with the table users, but the query only works if Where…
-
0
votes1
answer646
viewsHow to search for Id in mongodb
How to search in Mongo with condition parameters, type: Collection.find({userId}, {done: true}).fetch(); This way I wrote I want to return all the documents that have the done true, doing a search…
-
0
votes0
answers31
viewsGraphql installation with error
I am getting this error while trying to install Graphql npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/graphql/graphql-js.git npm ERR! npm…
-
0
votes1
answer43
viewsData not mapped schema graphql
I would like to ask a question about Graphql. I have an API that receives certain data from the user, for example: Name, email, address and etc... and in addition to this already predefined data, it…
graphqlasked 5 years, 7 months ago Marcus Rodrigues 113 -
0
votes0
answers37
viewsCommunication between microservices with Apollo Federation
I have a User service that has a Mutation called validate and I have a Post service that has a Mutation register. I’m using Apollogateway as Gateway. would like to know the most appropriate way to…
-
0
votes1
answer41
viewsError generating schema for Graphql with Graphcool
I am trying to create a Schema with Graphcool in an Angular application. The types are as follows:: type User @model { id: ID! @isUnique name: String! email: String! @isUnique password: String!…
graphqlasked 5 years, 11 months ago Pedro Costa 35 -
0
votes0
answers16
viewsaws serverless, dynamoDb, Amplify, cognito error
"One or more Parameter values Were invalid: Condition Parameter type does not match schema type (Service: Dynamodb, Status Code: 400, Request ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,…
graphqlasked 3 years, 10 months ago Robert Nathan Moraes 3 -
0
votes0
answers14
viewsWhat is the difference between withApollo and graphql?
In some React projects, I have two situations that seem to have similar purposes, but I don’t know exactly how each reacts to a graphQL call, a Mutation call, or a simple restful API call: Both are…
-
0
votes1
answer36
viewsGraphql + Rails 5: update
I’m having some problems when updating table data with Graphql. Situation: I need to send the field description and the status amendment. However, it will not always be necessary to send both.…
-
0
votes1
answer43
viewsGraphiql Loading page
I have Graphql in the dev Local machine along with a Gem Graphiql where I can do my queries, but on the test server I can’t access this page .../graphiql. The white screen is written Loading... and…
-
0
votes1
answer80
viewsMutation to create a relationship record
Ambience: Prisma GraphQL GraphQL Yoga NodeJS PostGresql I’m trying to make a mutation register a person and an address for that person. However Person and Address are separate tables, and I’m not…
-
0
votes0
answers63
viewsKnex - Nodejs Doubt (Graphql)
I want to return all my data from this table in my database. I am making the following query: async licitacaoAll(_, { dados }) { if (!dados) return null const { ativo } = dados return await…
-
0
votes1
answer74
viewsHow to return all fields of an object in a Mutation in Graphql?
Hello, I have a mutation in the GraphQL (With Rails) and I want to perform a database update using this mutation. When he finishes udpate, return the entire object as a response. Come on. I have a…
-
0
votes0
answers8
viewsHelp with Query Request in graphiql
Since I thank you for the space, I have the following problem with graphql, I followed the commands by a site of public api, the Anilist…
-
0
votes1
answer193
viewsMongodb - change object value within object array
I have a Collection in mongodb called users containing the field (which is an array of objects) adress. I have the following piece of code to replace and change in the database: async…
-
0
votes0
answers13
viewsHow to implement a R & Graphql process that checks the existence of next pages combining the results?
How to implement a R & Graphql process that verifies the existence of next pages by combining the results? I described a process that returns OK when the query is a text but returns error when I…
-
0
votes1
answer16
viewsgraphql and Apollo server error in start Apollo server
I have a problem with graphql and Apollo server and do not know why this error persists and do not know how to solve. Even putting 'await server.start()' still giving error SyntaxError: await is…
-
-1
votes1
answer70
viewsProblem in setar performance token
I’m having trouble authenticating my application, I do the process of inserting a token jwt to the user login, but I can’t make the application read the token or I’m losing you at some point, Repo…
-
-1
votes1
answer2482
viewsHow to export data from a database to a CSV file?
Hello, I would like to know how data could be exported from a database to an Excel spreadsheet, not necessarily need a code that does this, but I would like to know which languages can be used,…
-
-1
votes1
answer197
viewsHow to save value correctly in Sharedpreferences? - Flutter
Hello, everybody! Where am I going wrong? I have login with google to pick up the token and send to graphgl. This token is saved - at least that’s what it should be - in sharedpreferences, but it’s…
-
-1
votes1
answer61
viewsNode, Express and Graphql environment user system
Hello, world! I’m studying Graphql and I’m having a problem with this Mutation... var schema = buildSchema(' type userAccount { firstName: String! lastName: String! mobileNumber: String email:…
-
-1
votes1
answer143
viewsGraphql: I cannot stop the Node execution and return the Error (Business Error)
I’m trying to create some queries and mutations, on Node with Graphql. I’ve tried how to solve the problem and I can’t find a solution. I wonder if someone could help me? In the project I put the…
-
-1
votes1
answer33
viewshow to return the result of a mutation-deletion in graphql?
I am trying to return the value of a deletion in the api, with this value returned I will be able to do a treatment for the frontend but as I am beginner in this area, I’m having difficulties I…
-
-1
votes0
answers17
viewsMigration of Merge Graphql Schemas
How do I join all the SCHEMAS that have been created. import { mergeTypeDefs } from '@graphql-tools/merge'; import { loadFilesSync } from '@graphql-tools/load-files'; import path from 'path'; const…
-
-1
votes0
answers27
viewsAngular and Graphql
I have a problem with displaying the html component: Query graphql in service: document = gql` query unidadeMedida($id: ID!) { unidadeMedida(id: $id){ id unidadeMedida descricao } } `; Interface:…