-
Notifications
You must be signed in to change notification settings - Fork 42
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
question: How to get type name of FieldDefinition's Return Type? #818
Comments
In apollo-parser, that would be the (It’s named that way because However, consider using apollo-compiler instead as it provides more convenient APIs. Version 1.0 is still in beta (and doesn’t have as many up-to-date examples yet) but it’s what Apollo Router has been using for a while and where most of our focus is: https://docs.rs/apollo-compiler/1.0.0-beta.12/ |
Closing as I believe the specific question was answered, and we’ll rework documentation as part of finishing up apollo-compiler 1.0. Feel free to open another issue or discussion. |
@SimonSapin Sorry I forgot to reply before. |
Description
I am wondering if I can get the type name of a
FieldDefinition
's return type?For
I see how I can get
id, name, payments
using this example from the docs.And I see how I could get the names of all
ObjectTypeDefinitions
, but I am stumped on how to capture the association of field to return type, like the below (see?????
)The text was updated successfully, but these errors were encountered: