Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Field Property Mapping Support #100

Open
conradwt opened this issue Aug 2, 2016 · 1 comment
Open

Field Property Mapping Support #100

conradwt opened this issue Aug 2, 2016 · 1 comment

Comments

@conradwt
Copy link

conradwt commented Aug 2, 2016

Does the core support mapping from the Ecto field, first_name, to the GraphQL field, firstName? I have played with Ruby GraphQL server and it seems that there's a property attribute on the field.`. In GraphQL version for Ruby, one would do something like the following:

field :firstName, !types.String, property: :first_name
@joshprice
Copy link
Member

There is currently no way to do this automatically. We'll definitely support something like this soon though.

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

No branches or pull requests

2 participants