Skip to content

Commit

Permalink
fix(gatsby-source-url): make url graphql arg required
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty committed Sep 8, 2020
1 parent ede5185 commit 5693e46
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/gatsby-source-url/src/createRootImgixImageType.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { GatsbyCache } from 'gatsby';
import { GraphQLFieldConfig, GraphQLObjectType, GraphQLString } from 'graphql';
import {
GraphQLFieldConfig,
GraphQLNonNull,
GraphQLObjectType,
GraphQLString,
} from 'graphql';
import type ImgixClient from 'imgix-core-js';
import * as R from 'ramda';
import { createImgixFixedFieldConfig } from './createImgixFixedFieldConfig';
Expand All @@ -17,7 +22,7 @@ export const createRootImgixImageType = (
): GraphQLFieldConfig<any, any, IGatsbySourceUrlRootArgs> => ({
args: {
url: {
type: GraphQLString,
type: GraphQLNonNull(GraphQLString),
},
},
type: new GraphQLObjectType<any, any, any>({
Expand Down

0 comments on commit 5693e46

Please sign in to comment.