Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created October 24, 2018 16:05
Show Gist options
  • Save SaraVieira/544bee7bac99d7e817a7323d853dd3d4 to your computer and use it in GitHub Desktop.
Save SaraVieira/544bee7bac99d7e817a7323d853dd3d4 to your computer and use it in GitHub Desktop.
const Image = new GraphQLScalarType({
name: "Image",
description: "An Image Scalar",
serialize: value => isImage(value)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment