Questions tagged as 'graphql'

3
answers

What is the difference between GraphQL and REST?

The staff has commented a lot on the use of GraphQL and with that, some comments that will replace this rise we have API's REST. What's the difference between the two (GraphQL and REST)? And in what scenario is it interesting to opt for Gr...
asked by 03.08.2017 / 18:49
1
answer

Modularization of the schema using AdonisJs and GraphQL

I have a project where I'm using AdonisJS and GraphQL, I've created the schema and defined the queries , mutations , types . But everything was centralized in just one file, so I decided to modularize schema and resolvers . The problem...
asked by 22.11.2018 / 13:01
2
answers

How to consume a GraphQL API (https://api.loggi.com)

I would like to understand and know the opinions to apply in a project with urgency ... I currently own a shopping site and need to use the loggi company API which is a distribution company the api link is link , I have already used their old m...
asked by 28.09.2017 / 15:04
1
answer

Update in mongoDB is deleting the rest of the document

I have a Structured Collection like this: { "_id": i43h21n5lk2354, "createdAt" : ISODate("2018-08-19T16:56:31.555Z"), "services" : { "facebook" : { .... name: "Michael Jackson" .......
asked by 19.08.2018 / 19:07
1
answer

Error GraphQL with Sequelize

I'm having an error in the return of a Mutation . Apparently it can not read the id field, but the object I'm sending to GraphQL has this field, and since I'm new to GraphQL I did not understand what the error means. The error: { "e...
asked by 28.02.2018 / 22:26
1
answer

How to search for Id in mongodb With condition

How to do a mongo search with condition parameters, type: Collection.find({userId}, {done: true}).fetch(); In this way, I want to return all the documents that have the done equal to true, searching the User id. I have in the collectio...
asked by 29.07.2018 / 20:55
0
answers

Installing GraphQL with error

I've been experiencing an annoying problem with GraphQL at the time of installation. 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 ERR! fatal: una...
asked by 17.09.2018 / 18:28
0
answers

How to test Graphql in the Laravel framework

I'm creating an application in Laravel 5.6 with Graphql, from this library: link I was able to generate everything normally, but I'm having a hard time creating unit tests for application. Any alternative how to test my requests for Grap...
asked by 26.05.2018 / 08:50
0
answers

How has your experience with GraphQL been? Above all compared to the REST model

I'm doing a part of a project that has been considered the possibility of using Graphs for building APIs. Initially I found it interesting, but I had no experience with this technology and although I did some tests and studied superficially, I c...
asked by 24.04.2018 / 16:54