Questions tagged [neo4j-graphql-js]
44 questions
0
votes
0 answers
how to fix intersection conflict with neo4j-driver and Connection from cypher-query-builder
I have this code:
import { Neo4jOptions } from './../interfaces/neo4joptions.interface';
import { DynamicModule, Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { Connection } from…

MichaelE
- 757
- 14
- 42
0
votes
0 answers
Integrating WebSockets for GraphQL subscriptions in SvelteKit application with Apollo Server and Neo4j GraphQL Library
I'm trying to integrate GraphQL subscriptions in my SvelteKit application using Apollo Server and the Neo4j GraphQL Library. I have successfully set up the basic GraphQL queries and mutations, but I'm struggling with implementing…

gwern
- 1
0
votes
0 answers
How can I add custom scalars to the neo4j graphql library for my apollo server?
Is there a way to add custom scalars with neo4j graphql library.
I am using neo4j 4.4 with apollo server.
I want to write a query for my graphql API that returns the result the following cypher query from my database :
match (p:PATENT {app_num :…
0
votes
0 answers
Neo4j Graphql Error Implementing Interface
I have a graphql interface like this
interface Verifiable {
verifications: [Verification!]!
}
I then implement that interface like this:
type Address implements Verifiable @node(labels: ["Address", "Verifiable"]) @key(fields:"id"){
id: ID!…

ltmutiwekuziwa
- 55
- 1
- 6
0
votes
0 answers
Apollo Server and @neo4j/graphql: Automatically created Where Type is missing fields (Graphql)
I defined a graphql schema in apollo server with @neo4j/graphql likes this:
type User {
name: String
status: String
Later on I added a new field:
type User {
name: String
status: String
isAdmin: Boolean
Now I query the API like…

user20418895
- 11
- 3
0
votes
1 answer
How to update properties of nodes while merging in neo4j
I want to merge my contacts with existing available contact nodes, but there is a minor issue I am facing.
I want to replace the name only if the name property does not exist
if exist I do not want to touch it let it be as it is
if the property is a…

Rizwan
- 163
- 2
- 8
0
votes
0 answers
GraphQL server response is very slow with a large number of types and interfaces
Env Details :
"@neo4j/graphql": "^3.12.0",
"@neo4j/introspector": "^1.0.2",
"apollo-server": "^3.11.1",
"dotenv": "^16.0.3",
"graphql": "^16.6.0",
"neo4j-driver": "^4.4.3"
OS : Windows10
We have 201 type definitions and 105 interface definitions…

HashDhi
- 27
- 4
0
votes
0 answers
Processing temporary properties returned by map projections
Consider the following database schema:
type Actor {
actorId: ID!
name: String
movies: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT)
}
type Movie {
movieId: ID!
title: String
description: String
year: Int
…

yarnabrina
- 1,561
- 1
- 10
- 30
0
votes
0 answers
neo4j graphql @auth only read if relationship property is x
Inside @auth allow or where field, I would like to access the role of the user on PART_OF_TEAM to determine whether or not they should read/edit the posts.
As an example: a user connected to a team with the edge property "VIEWER" should only be able…

T P
- 21
- 3
0
votes
1 answer
Cannot read properties of undefined (reading 'concepts')
Solution: "data" from the Apollo query was not arriving on time for a check in the options property of the Autocomplete component, even though loading was complete. My final code for the Autocomplete component:

rvhorton
- 13
- 4
0
votes
1 answer
@neo4j/graphql and @auth directive usage for CRUD operations
I'm using @neo4j/graphql library to define my graphql API interface. I've got my Todo model and I would like anyone to read it, but I'd like only admin role to be able to edit it. I'm using NestJS as backend. Type definition is as follows:
//…

akkonrad
- 1,043
- 1
- 10
- 25
0
votes
1 answer
Does Vue Apollo saves queries in cache?
I am currently trying to force Vue Apollo to query the latest data on an event. However, when the apollo query re-query on an event (i.e. on route change) it still loads old results (although the data had changed in the meanwhile). Only when I…

Kilian Kramer
- 89
- 5
0
votes
1 answer
How to update relational types in Graphql
I am new to Graphql and I want to update relational types, but I have no idea how to do it.
My type definitions are as following:
type User {
email: String!
username: String!
password: String!
registered_at: Date!
role: String!
…

Kilian Kramer
- 89
- 5
0
votes
1 answer
Unable to create realtions in graphql neo4j
type User {
user_name: String
Age: Float
Drinking: Boolean
Nationality: String
sex: String
Smoking: Boolean
Weight: Float
sufferingFromDisease: disease @relationship(type: "suffering_from", direction: OUT)
haveInFamilyHistory:…
0
votes
1 answer
unable to use fetch in formik and post data to api
I was trying to post the formik form data using fetch and mutations. I have created my API using neo4j graphql library and Apollo server now i want to post data into the API using react as frontend.
import './App.css';
import { useFormik } from…