View Source Vigil.Query (vigil v0.4.4)
Utilities for determining whether GraphQL query strings are introspection queries.
Link to this section Summary
Functions
When passed a connection of the type Plug.Conn.t(), parses out the "query" key from the :body_params or :query_params of the conn and returns true if the query is not a GraphQL introspection query.
Link to this section Functions
@spec safe?(conn :: Plug.Conn.t()) :: boolean()
When passed a connection of the type Plug.Conn.t(), parses out the "query" key from the :body_params or :query_params of the conn and returns true if the query is not a GraphQL introspection query.
Reserved GraphQL introspection query strings are defined here.