```const User = objectType({   name: 'User',   def...
# orm-help
t
Copy code
const User = objectType({
  name: 'User',
  definition(t) {
    t.model.id()
    t.model.name()
    t.nullable.model.email() //nullable not working
    t.model.posts({
      pagination: false,
    })
  },
})
anyone know how to make the model nullable/nonNull, it is not working, the type follow the prisma model whether i use nullable or nonNulll
n
Hey @tylim 👋
t.model
will always use the Prisma version of this field – so you probably can't modify it. However, you should be able to define it like this:
Copy code
const User = objectType({
  name: 'User',
  definition(t) {
    t.model.id()
    t.model.name()
    t.nullable.string.email() 
    t.model.posts({
      pagination: false,
    })
  },
})
Let me know if that works for you 🙂
t
thank you, i understand now
e
Hi @nikolasburk, is it possible to add args option to t.model? I mean:
Copy code
const User = objectType({
  name: 'User',
  definition(t) {
    t.model.id()
    t.model.posts({
      args:{where:arg(type:.....)},
    })
  },
})
it is nice that Prisma provide out of box support for pagination, filtering, orderby as args, but it would be nice to have custom args here so that user can have much more flexibility. Thank you.