Another small nexus question. When creating input ...
# orm-help
h
Another small nexus question. When creating input types in nexus, how does one use a prisma DateTime scalar?
c
You can use the pattern found here
Copy code
<https://github.com/prisma/nexus/blob/develop/examples/ghost/src/schema/index.ts>
Copy code
import { asNexusMethod } from "nexus";
import { GraphQLDate } from "graphql-iso-date";

export const GQLDate = asNexusMethod(GraphQLDate, "date");

export * from "./User";
export * from "./Query";
export * from "./Post";
Then you should be able to use
t.date()
Copy code
export const User = objectType({
  name: "User",
  definition(t) {
    t.date("updatedAt", { nullable: true });
    t.string("updatedBy", { nullable: true });
  },
});`
Let me know if you have any more questions 🙂