Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Cross Referencing #195

Open
BimAdmin opened this issue Mar 16, 2022 · 2 comments
Open

Node Cross Referencing #195

BimAdmin opened this issue Mar 16, 2022 · 2 comments
Assignees

Comments

@BimAdmin
Copy link

I've very recently implemented your module and am having some problems with Node cross refferencing (See snipet below).
Any suggestions for this or is this fundimentaly impossible?

e.g.

class UserNode(Node):
    teams = list_of(TeamNode)

class TeamNode(Node);
    users = list_of(UserNode)

and

class ItemNode(Node):
    parentItem = ItemNode

Thanks!

@barbieri barbieri self-assigned this Mar 24, 2022
@barbieri
Copy link
Member

i suggest you generate this with the codegen, but you can have string for such things, see https://sgqlc.readthedocs.io/en/latest/sgqlc.types.html#cross-references-loops

@barbieri
Copy link
Member

barbieri commented Apr 1, 2022

hi @BimAdmin, does that solve your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants