Questions tagged [GraphQL] (23)

1
answer

$lastName of type String used in the position expecting the type String?

Schemaimport { gql } from 'apollo-server-express'; export default gql` extend type Mutation { signUp( lastName: String! ): String! } `;Resolvers{ Query: {}, Mutation: { signUp: async ( _, { lastName} ) => { try { console.log(lastName) return 'ok'; } catch (error) { return 'error'; } }, }, };Requestmutation(...
bridie.Heathcote63 asked April 1st 20 at 18:06
1
answer

How to implement two types of pagination in GraphQL at the same time?

Hello! In GraphQL popular two types of pagination "basic" and using "cursor". Cursor - first, after, before, last Baseline - offset, limit And which says a lot about each, but I never write about the use of two. Why is it necessary? For example in the admin table pagination with page and mobile app infinite scrolling. While...
mia_Wi asked March 31st 20 at 20:41
1
answer

Can anyone suggest an example of Symfony 4 + Graphql?

Good time of day dear friends, trying to gash backing Symfony 4 + Graphql I read on the Internet than it is to cook and how it should work, but all examples of what is raw or something... Does anyone have a good demo example, so to speak, from beginning to end implemented? that it was possible to rascality and the example ...
Leanne90 asked March 31st 20 at 16:14
0
answer

Does state React to manage the data flowing through GraphQL (Apollo)?

Good day, I am an aspiring front-end developer. Now is the time to meet with apollo-graphql. In the course of implementation of the project noticed that the data from gql queries/mutations/subscriptions need not state in reacte. This is just my observation, based on first experience and I would like that you shared best pra...
Virginia_Altenwer asked March 31st 20 at 15:48
3
answers

Tutorial Django+GraphQL+React?

Hi everyone, tell me good tutorials for the kettle to Django+GraphQL+React Maybe it will be video tutorials would be cool The main thing that was completely step by step
greyson82 asked March 30th 20 at 01:21
2
answers

What bundle to choose for GraphQl server?

I want the application to give the entity using GraphQl (just a list of entities, filtered by the relations). Already have a filled database (postgres), all business logic on Laravel. A few began to study, the choice fell on a bunch of graphql-yoga + TypeORM, but ran into some difficulties. To start TypeOrm apparently desi...
Major_Trant asked March 30th 20 at 00:55
1
answer

How to write GraphQL parser?

If you just parse through the web socket it is sufficient to simply send a request const WebSocket = require('ws'); const ws = new WebSocket("wss://kek.win/ws/EN?thresholdTimeout=100&threshold=2"); ws.on('message', msg => { console.log(msg); }); let object = ['kek'] ws.on('open', () => { ws.send(JSON.stringify(...
dayna asked March 30th 20 at 00:40
0
answer

How to give graphql array in php?

I have in the field of the picture to give an array or an object with the URLs.{ //... imgs: [ "\site\ffhj.jpg", "\site\ffhj444.jpg", ] //... } To do so type:public function fields() { return [ // ... 'imgs'=> Type::a list of(Type::string()), // ... } Swears: "message": "Cannot use object of type GraphQL\\Type\\De...
cleta.Gulgowski asked March 30th 20 at 00:17
2
answers

How to link c graphQL front?

Good day! There is a simple server with Node JS and Mongo Database on Atlas, for GraphQL queries are used. How can I link the already finished front (html, css, native__js) to the server?
river.Mitchell asked March 29th 20 at 19:48
1
answer

What is the difference graphqlExpress from graphqlHTTP?

Hello, what is the difference use graphqlExpressapp.use( '/graphql', graphqlExpress({ schema: MyGraphQLSchema, graphiql: true, }), ); fromgraphqlHTTPapp.use( '/graphql', graphqlHTTP({ schema: MyGraphQLSchema, graphiql: true, }), );UPD: as I understood it, thanks Michael @amelythat graphqlExpress been used, a new questio...
duane.Wiegand asked March 27th 20 at 12:05