Questions tagged [neo4j-graphql-js]

44 questions
0
votes
1 answer

Invalid input 'on': expected\n \"*\"\n \"]\"\n \"{\"\n \"|\"\n a parameter while creating mutations

I have created a neo4j graphql API which does CRUD operations and was trying to implement mutations but i am receiving this error and don't know why this is happening. I am not facing any problem implementing mutations from this page. But when I…
0
votes
0 answers

How to build a graph on crud operations using neo4j graphql library?

I was trying to build grandstack app using neo4j graphql library. Rather than working on already existing data, like the most tutorials shown in the internet for neo4j. I want to build a graph by asking the user data using a react form. As I am new…
0
votes
2 answers

Why using the count function in neo4j with graphql returns two values ​called low and high?

If I execute the following cypher in Neo4j browser returns the expected values MATCH (n:Document) RETURN { year: n.year , countdocs : COUNT(n) } Result: {"countdocs":3,"year":"2018"} But If I execute the same cypher in…
nguaman
  • 925
  • 1
  • 9
  • 23
0
votes
1 answer

How to bind `$jwt.sub` on Create to property using Neo4j and GraphQL?

I'm currently using neo4j and graphql with an Apollo server. I have the following type: type Person { id: ID! @id externalId: ID name: String! } extend type Person @auth( rules: [ { operations: [CREATE, UPDATE],…
ILikeTacos
  • 17,464
  • 20
  • 58
  • 88
0
votes
1 answer

Neo4j-graphql-js -- Is there a way to check if an optional parameter exists or is not null?

This is a simplified example, but I am attempting to make a change to my schema that is backwards compatible with older versions of the app. I am adding an externalUrls parameter: CreatePost(body: String!, userId: ID!, mentions: [String!], linkUrl:…
Matt Larsuma
  • 1,456
  • 4
  • 20
  • 52
0
votes
1 answer

grandstack add mutation with relationship

i'm able to call a mutation in order to insert a node, but what if i want to insert the relationship with another node as well? I saw that the grandstack has generated some mutations of this type: AddGroupUsers How can i call this mutation togeder…
pinale
  • 2,060
  • 6
  • 38
  • 72
0
votes
0 answers

How can I reuse "this" in reference to a current node, in neo4j-graphql?

I am using neo4j-graphql-js and in one of my cypher statement's I'm referring to "this" which is the current node. It seems that the word "this" in my first MATCH is accurate, but then when I use MATCH the second time, "this" becomes just a general…
Thingamajig
  • 4,107
  • 7
  • 33
  • 61
0
votes
1 answer

GraphQL Stitching - Why would fields from subschemas return null?

I'm attempting to stitch together two GraphQL schemas, one from contentful and one from neo4j. Each subschema appears to be interrogated during queries across the combined schema but "foreign" fields always come back as null. I just can't figure…
Vok
  • 457
  • 5
  • 19
0
votes
1 answer

Neo4j/GraphQL - get the last node in a linked list in order to continue the linked list with newly created nodes

I have a linked list of Posts in a Group. A Group has a FIRST_POST and then subsequent NEXT_POST relationships. The GraphQL typedef looks like this: type Group { id: ID! name: String! membersList: [User] @relation(direction: IN, name:…
Matt Larsuma
  • 1,456
  • 4
  • 20
  • 52
0
votes
2 answers

How to Splice a Linked Lists in Cypher

I have a Linked-List of LogEntries. Each entry has a date. Every user has exactly 1 Log. What's the best way to splice in a new log entry if I receive a date in the past? (log:Log) (e1:LogEntry {date: Date('2020-03-19')}) (e2:LogEntry {date:…
mmmoli
  • 17
  • 4
0
votes
1 answer

Neo4j-graphql self reference type is empty

Trying neo4j with graphql using apollo and neo4j-graphql-js. Here is my typeDefs: const typeDefs = ` type Employee { eid: ID! name: String! title: String! email: String reportees:…
0
votes
1 answer

Response from GraphQL Mutation not working as expected

I am running a GraphQl mutation via a resolver. Its against a Neo4j database. The query is working fine but I am not able to structure the results in a way that they are displayed back in the result. I've tried several different combinations of…
n4nite
  • 459
  • 4
  • 19
0
votes
1 answer

Is it valid to extend a type in the same schema doc as the type definition

I'm struggling to find docs which are clear about this: Can I extend a type in the same schema doc as I define a type? I keep getting errors like the following: Error: Cannot extend type "Healthcheck" because it is not defined. at assertValidSDL…
wheresrhys
  • 22,558
  • 19
  • 94
  • 162
-1
votes
1 answer

Neo4j with graphql: unable to fetch self reference type

I have simple neo4j & graphql example. Here is my typeDefs: const typeDefs = ` type Employee { eid: ID! name: String! title: String! email: String reportees: [Employee]…
1 2
3