Skip to content

Instantly share code, notes, and snippets.

Created August 3, 2017 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/92cba7cc73987b22af214ab9c23e354e to your computer and use it in GitHub Desktop.
Save anonymous/92cba7cc73987b22af214ab9c23e354e to your computer and use it in GitHub Desktop.
the description for this gist
Field("product", OptionType(ProductType),
description = Some("Returns a product with specific `id`."),
arguments = Argument("id", IntType) :: Nil,
resolve = c => c.ctx.product(c.arg[ProductId]("id"))),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment