How to use the graphql-sequelize.DateType.default function in graphql-sequelize

To help you get started, we’ve selected a few graphql-sequelize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github birkir / prime / packages / prime-core / src / routes / internal / index.ts View on Github external
return opts;
          },
        }),
      },
      display: { type: GraphQLString },
      publishedVersionId: { type: GraphQLID },
      versions: {
        type: new GraphQLList(
          new GraphQLObjectType({
            name: 'Version',
            fields: {
              versionId: { type: GraphQLID },
              isPublished: { type: GraphQLBoolean },
              createdAt: { type: DateType.default },
              updatedAt: { type: DateType.default },
            },
          })
        ),
      },
    }),
  });

  const contentEntryConnectionEdgeType = new GraphQLObjectType({
    name: 'ContentEntryConnectionEdge',
    fields: {
      node: { type: contentEntryType },
      cursor: { type: GraphQLString },
    },
  });

  const contentEntryConnectionType = new GraphQLObjectType({
github birkir / prime / packages / prime-core / src / routes / internal / index.ts View on Github external
};

            return opts;
          },
        }),
      },
      display: { type: GraphQLString },
      publishedVersionId: { type: GraphQLID },
      versions: {
        type: new GraphQLList(
          new GraphQLObjectType({
            name: 'Version',
            fields: {
              versionId: { type: GraphQLID },
              isPublished: { type: GraphQLBoolean },
              createdAt: { type: DateType.default },
              updatedAt: { type: DateType.default },
            },
          })
        ),
      },
    }),
  });

  const contentEntryConnectionEdgeType = new GraphQLObjectType({
    name: 'ContentEntryConnectionEdge',
    fields: {
      node: { type: contentEntryType },
      cursor: { type: GraphQLString },
    },
  });