windkomo
10/06/2020, 8:38 PMUserCreateInput
but there’s only UserCreateWithoutPostsInput
. What decides whether the plain input is generated or not ?windkomo
10/06/2020, 8:55 PMextendType({
type: 'Mutation',
definition(t) {
t.field('createUser', {
type: 'User',
args: {
data: arg({ type: 'UserCreateInput' }),
},
nullable: false,
async resolve(_root, args, ctx, info) {
return createUser(_root, args, ctx, info);
},
});
},
});
windkomo
10/06/2020, 8:55 PMUserCreateInput
is not foundAhmed
10/06/2020, 8:55 PMt.crud
usage so now if you added t.crud.users({ filtering: true, ordering: true })
you will get all user inputs generated
if you need to get all inputs already generated you can use my Pal.js to generate all your inputsAhmed
10/06/2020, 8:56 PMwindkomo
10/06/2020, 9:10 PM_t.crud.createOneUser_()
in my mutationType
Ahmed
10/06/2020, 9:13 PMt.model
and t.crud
you can use the small tool I built https://paljs.com/cli/cntwindkomo
10/06/2020, 9:42 PM