graphql-url
graphql scalar validating that it's a correct url
Installation
yarn install graphql-url [--dev]
Usage
This module exports 3 different scalars - one for absolute urls (GraphQLAbsoluteUrl
), one for relative urls (GraphQLRelativeUrl
) and one for either relative or absolute urls (GraphQLUrl
);
; const schema = query: name: 'RootQueryType' fields: foo: type: GraphQLUrl { return 'https://foo.com/bar'; } ;