Replies: 1 comment 1 reply
-
I am not sure this will work the way you think it will. The engine REALLY wants to return data results using the field names as they are defined in the schema A client can use a field alias to rename field names in results
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've created a
@tabular(name: String!) on FIELD
directive. It's only defined in my schema - there are no associated classes. The purpose of the directive is to provide the column name for a field if it is later exported as tabular data (CSV, TSV, etc.).For a query like this:
I have one DataFetcher that is wired to provide the entire response. The intention is that it fills in the
tabularMappings
section with the paths and names to use for exporting the values to tabular formats, e.g. like this:The problem is, cannot find the directive anywhere within the
SelectedField
or anywhere else in the DataFetchingEnvironment. Where can I find it?Any suggestions appreciated,
--Eric Everman
Beta Was this translation helpful? Give feedback.
All reactions