Skip to content

Commit

Permalink
Add specifiedBy type system directive as per spec
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanvliet committed Sep 7, 2022
1 parent 0a8e8e6 commit 137b5aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/absinthe/schema/prototype/notation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ defmodule Absinthe.Schema.Prototype.Notation do
expand &__MODULE__.expand_deprecate/2
end

directive :specified_by do
description "Exposes a URL that specifies the behavior of this scalar."

repeatable false

arg :url, non_null(:string),
description: "The URL that specifies the behavior of this scalar."

on [:scalar]
end

def pipeline(pipeline) do
pipeline
|> Absinthe.Pipeline.without(Absinthe.Phase.Schema.Validation.QueryTypeMustBeObject)
Expand Down

0 comments on commit 137b5aa

Please sign in to comment.