First of all thanks so much for this library. It kinda helped me convince my teammates that graphql is the way forward.
And the question. Let's say I have a query like so:
profiles {
id
users {
name
}
}
Here I want 'id' to be "sent" to profiles as a projection but I don't really care about 'users' since that's a separate collection and preferably sent along to another place which could do the same projection but only for users. Is there a way to "skip" keys or something. I know I can just delete the keys I don't want but....
Ideally I would like it to be something like:
['id'] --- profiles projections
['name'] --- users projections
Come to think of it now that I've worked around the issue is that maybe it could support a white list instead. "only map these"...optional of course.
And maybe a way to configure always excluded keys...like "__typename" as an example.
First of all thanks so much for this library. It kinda helped me convince my teammates that graphql is the way forward.
And the question. Let's say I have a query like so:
Here I want 'id' to be "sent" to profiles as a projection but I don't really care about 'users' since that's a separate collection and preferably sent along to another place which could do the same projection but only for users. Is there a way to "skip" keys or something. I know I can just delete the keys I don't want but....
Ideally I would like it to be something like:
['id'] --- profiles projections
['name'] --- users projections
Come to think of it now that I've worked around the issue is that maybe it could support a white list instead. "only map these"...optional of course.
And maybe a way to configure always excluded keys...like "__typename" as an example.