You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when I look into AnswerUserRelationship I can see on with type:
export type AnswerUserRelationship = On & {
__typename?: 'AnswerUserRelationship';
cursor: Scalars['String'];
node: User;
on?: Maybe<Scalars['DateTime']>;
};
export type On = {
on?: Maybe<Scalars['DateTime']>;
};
Any idea what can I do to get this type correctly in the query? It is quite an issue since I am planning to have quite a few properties on "edges/relations" and it would be great if I can get them with correct type.
Thanks in advance for anyone who can help/guide me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
My setup is:
framework: Nextjs 13 with appdir
db: neo4j
and graphql with "@neo4j/graphql" package to work with graphql in the project.
this is one of my types in the schema:
and this is the one query I have currently:
this is my Codegen config:
when I try to get
onfrom edgeuserConnection.edges[0].onI get any type.I believe it comes from graphql.ts generated file:
but when I look into
AnswerUserRelationshipI can seeonwith type:Any idea what can I do to get this type correctly in the query? It is quite an issue since I am planning to have quite a few properties on "edges/relations" and it would be great if I can get them with correct type.
Thanks in advance for anyone who can help/guide me.
Beta Was this translation helpful? Give feedback.
All reactions