0 Right now when I send a request with multiple collections, the browser chrome shows me a 504 timeout ‘cos it has taken more than 60 seconds. The client has asked me to display a new message to the user when this issue happens. I’m a bit lost as this is the first time that […]
0 MATCH (t1:Tel{TB:true})<-[:TelBIZ]-(:ACC{TB:true})- [or:REBIZ{movOre:t1.nuTel}]->(:ACC{TB:true})-[:TelBIZ]->(t2:Tel{TB:true,nuTel:or.movBene}) WHERE t1.nuTel<>t2.nuTel RETURN t1,t2,COUNT(or) AS Ope,SUM(or.imp) AS Total, 10^3 as precision,max(or.Txt) as mRB I am trying to run this query to return few values.but I find the query is not optimised. kindly suggest me how can I make it optimized code in neo4j 3.5v I am expecting a better optimized query […]
0 I am using @apollo/client v3. I want to get loading state when requests will happen from polling but it is not working as I expect. This is my query const { data, loading } = useQuery(SOME_QUERY, { variables: { variable: "value", }, 10000 //poll interval }); I wrote useEffect to catch if it is […]
-1 I am currently working on a project in which GraphQL is being implemented for the first time and initially I only had to run GraphQL mutations within the component(using Apollo-client and it’s hook – useMutation) that I was working on and all was well. Now, I am trying to have the mutation in the […]
8 Basically what I’m trying to achieve is send info to the server without quotations e.g Admin instead of “Admin”, but as we all know Graphql will throw an error is the variable is not defined or is not in quotations. javascript react-native enums graphql Share Improve this question Follow asked May 2, 2018 at […]
1 I’m using nestjs-query, and I have an entity (TodoItem). I would like to generate 2 resolvers/queries to fetch many todos: A cursor paginated one An offset paginated one. This is what I did: resolvers: [ { DTOClass: TodoItemDTO, EntityClass: TodoItemEntity, create: { disabled: true }, update: { disabled: true }, delete: { disabled: true […]
0 I am reading through this page: https://the-guild.dev/graphql/scalars/docs/quick-start It explains how to get pre-built graphql scalars. The examples on the page about how to use these scalars, seem to be using a code-first approach to building a schema. I am not sure how to use these scalars with the SDL-first approach where I have a […]
1 In my NestJS project I’m creating a GraphQL endpoint for a service that returns a dictonary object: { [key: number]: MyDataDto } In my .interfaces.ts file I would like to have something like: interface ArrayAsObject<T> { [key: number]: T } @ObjectType() export class MyDataDtoAsDictionary implements ArrayAsObject<MyDataDto> { @Field(() => MyDataDto) [key: number]: MyDataDto } […]
0 Using https://github.com/shurcooL/githubv4 and I’m really struggling to pull back a specific Release for a gh repo. The below code block keeps returning nothing when there is a v3 release: var releaseQ struct { Repository struct { Release struct { Author githubv4.String } `graphql:"release(tagName:$tagName)"` } `graphql:"repository(owner:$repositoryOwner,name:$repositoryName)"` } variables = map[string]interface{}{ "repositoryOwner": githubv4.String("jacobtomlinson"), "repositoryName": githubv4.String("gha-find-replace"), "tagName": […]
0 I have a graphql query that returns a list of pullup bar objects. Query: query PullUpBarsByDate($userID: String) { PullUpBarsByDate( type: "PullUpBar" sortDirection: DESC ) { items { id lat lng userID } } } Returns something like this: [ { id: "rf6zrd1prm", lat: 63.50235889533083, lng: 28.426290788320724, }, { id: "y80ymnlgzi7", lat: 62.5654380797649, lng: 17.338090077030582, […]