julienvincent / modelizr

Generate GraphQL queries from models that can be mocked and normalized.
http://julienvincent.github.io/modelizr
176 stars 6 forks source link

Using arrayOf, valuesOf and union in a type-defined model. #4

Closed julienvincent closed 8 years ago

julienvincent commented 8 years ago

When defining a property type as a model:

const user = model('users')
const book = model('books', {
    author: {type: user}
})

There is no support for union, arrayOf or valuesOf

julienvincent commented 8 years ago

On second thoughts I don't think this makes sense. I'm not even sure if the ability to specify a model as a type should remain.