Henry
03/12/2019, 9:21 PMChris Fuller
03/13/2019, 9:22 AM<https://github.com/prisma/nexus/blob/develop/examples/ghost/src/schema/index.ts>
Chris Fuller
03/13/2019, 9:23 AMimport { asNexusMethod } from "nexus";
import { GraphQLDate } from "graphql-iso-date";
export const GQLDate = asNexusMethod(GraphQLDate, "date");
export * from "./User";
export * from "./Query";
export * from "./Post";
Chris Fuller
03/13/2019, 9:24 AMt.date()
export const User = objectType({
name: "User",
definition(t) {
t.date("updatedAt", { nullable: true });
t.string("updatedBy", { nullable: true });
},
});`
Chris Fuller
03/13/2019, 9:25 AM