Questions tagged [GraphQL] (23)

1
answer

How to make graphql on bitrix?

Bitrix acts as a backend for the front, need the api, front graphql requirement — how it can be implemented on Bitrix?
cristian.Gutmann asked April 18th 20 at 12:44
0
answer

Why operation: create, update, delete, I don't get the whole list of items?

Hi, I have implemented scroll-laoder and when I turn the page and scroll all loaded correctly, but when you do one of these operations: create, update, delete, the page reloads and I have the first page with a limit of elements, but the new page elements are not pogruzhayutsya, and a request to the server comes and I get re...
Burley.Maye asked April 16th 20 at 11:07
0
answer

How to load the next 50 items in the pagination?

Hi, the server part is implemented uploading items with a limit of 50 pieces to the page how to implement pagination in such a way that if all elements greater than 50 to pull the next page from the server and phinyawat it with 1? Request to the server: apollo: { users: { query: query gql'users($input: ReadUsersInput)...
Trystan.Graham53 asked April 16th 20 at 10:32
0
answer

How to associate apollo with the next js?

Hi to all, it is impossible to associate apollo c nextjs. I have a HOC from nextjs withApollo in it, I wrapped my pages and everything seems to be working, but when I make a reference to the api to your api.localhost in the console I get the error Error while running `getDataFromTree` { Error: Network error: request to http...
Catharine24 asked April 8th 20 at 17:37
1
answer

How to make a request from server to server?

How to make a request from server to server (API) where the аuth use cookies and not jwt
Taylor_Kuhlm asked April 8th 20 at 17:22
1
answer

Why you need a Redux, if there is GraphQL?

Hello I'm new to developing on ReactJS. After studying the theoretical part, I wrote my first app - notes with the ability to edit, delete, add. After you have mastered Redux and added it to the app. Now studied GraphQL, created a database on MongoDB, and wanted to implement in the app, but found out that together Redux an...
pearl asked April 8th 20 at 10:05
1
answer

As via Apollo (GraphQl) to upload multiple files?

Good day, There is a need GraphQl query to send to server several files but it turns out to send only 1 file if the variables in the variable file I am passing is not an array but single file dataFiles[0]. The array dataFiles looks like this dataFiles = [File, File, File, File] In the dock recommended type indicated i...
silas94 asked April 7th 20 at 15:22
1
answer

The resolve method in GraphQL what parameters it accepts and what they do?

Making a parent object which is present in parameter in the method resolve const FilmType = new GraphQLObjectType({ name: 'Movie', fields: ()=>({ id: {type: GraphQLID}, name: {type: GraphQLString}, genre: {type: GraphQLString}, year: {type: GraphQLString}, director: { type: DirectorType, resolve(parent,args){ re...
coty_Senger asked April 7th 20 at 10:07
1
answer

GraphiQl in the response data, all fields are null. Why?

Why the result field is always null. First run. error code \\\\\ code schema.js const graph = require('graphql'); const {GraphQLObjectType,GraphQLString,GraphQLSchema,GraphQLID,GraphQLInt,GraphQLList} = graph; let Directors = [ {'id':"1",'name':'Zigfrid',}, {'id':"2",'name':'Fill'}, ]; const DirectorSome = new GraphQLO...
leann.Steub asked April 7th 20 at 09:45
1
answer

How to do a query graphql?

Hi all. Explain and solve please dispute the front with the backend. Neither he nor I have not used QraphQl. I send a request like this buck says that the request should not be with variables, this type of AddBook($name: String!, $genre: String!, $authorId: ID!) he focuses on this apercu and says that the request must...
Carli_Hackett asked April 7th 20 at 09:14