Would it be at all possible to create traits from those fragments so that I could create re-usable functions around them? Like ListAllUserProjects could implement trait ProjectIdent so that _id and _name were abstracted as functions.
I'm selecting the same fields for a very nested graph definition and I was hoping there was a way I could make it more generic.
Let's say I have some fragments:
And the query:
Would it be at all possible to create traits from those fragments so that I could create re-usable functions around them? Like
ListAllUserProjects
could implementtrait ProjectIdent
so that_id
and_name
were abstracted as functions.I'm selecting the same fields for a very nested graph definition and I was hoping there was a way I could make it more generic.