Open rwc0920 opened 2 years ago
mockObj = { name: "John", cars: { van: "", truck: "" } } const InitialQuestions = inputObjectType({ name: 'InitialQuestions', definition: (t) => { t.string('name') ** DEFINE CARS PROPERTY HERE ** } }) export const submit = extendType({ type: 'Mutation', definition: t => { t.field('InitialQuestions', { type: FormSubmit , args: {form: InitialQuestions}, resolve: applicationInitialQuestions }) } })
Im trying to define some values that are nested when using inputObjectTypes. Does anybody know if this is doable? I've done a lot of googling but haven't really found many examples in this context.
Im trying to define some values that are nested when using inputObjectTypes. Does anybody know if this is doable? I've done a lot of googling but haven't really found many examples in this context.