Skip to content
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

Allow to register singular types #10

Closed
matteodem opened this issue Apr 28, 2017 · 0 comments
Closed

Allow to register singular types #10

matteodem opened this issue Apr 28, 2017 · 0 comments
Labels

Comments

@matteodem
Copy link
Owner

matteodem commented Apr 28, 2017

Something like

import moment from 'moment'
import { registerType } from 'meteor/easy:graphqlizer'

registerType(Date, {
  type: 'Date',
  resolve: field => moment(field),
})

This allows to define custom types that map a simple schema type to a graphql type.

@matteodem matteodem mentioned this issue Feb 16, 2018
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant