Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const createCmsField = () => {
schema.addType(CategoryType);
schema.addType(CategoryQueryType);
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(CmsType);
export const createCmsField = () => {
schema.addType(CategoryType);
schema.addType(CategoryQueryType);
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(CmsType);
// Add root query field
schema.addQueryField({
export const createCmsField = () => {
schema.addType(CategoryType);
schema.addType(CategoryQueryType);
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(CmsType);
export const createCmsField = () => {
schema.addType(CategoryType);
schema.addType(CategoryQueryType);
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(CmsType);
// Add root query field
schema.addQueryField({
name: "Cms",
export const createCmsField = () => {
schema.addType(CategoryType);
schema.addType(CategoryQueryType);
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(CmsType);
// Add root query field
schema.addQueryField({
name: "Cms",
type: CmsType,
resolve() {
return CmsType;
}
});
};
export const createCmsField = () => {
schema.addType(CategoryType);
schema.addType(CategoryQueryType);
schema.addType(PageType);
schema.addType(PageQueryType);
schema.addType(RevisionType);
schema.addType(RevisionQueryType);
// Create Cms field to group related types and fields
const CmsType = new GraphQLObjectType({
name: "Cms",
fields: () => ({
Categories: createCategoryQueryField(),
Pages: createPageQueryField(),
Revisions: createRevisionQueryField()
})
});
schema.addType(CmsType);
// Add root query field