ScalarDefinition

Constructor:

Signature:

def __init__(
self,
name: str,
description: str | None,
specified_by_url: str | None,
serialize: Callable | None,
parse_value: Callable | None,
parse_literal: Callable | None,
directives: Iterable[object] = (),
implementation: GraphQLScalarType | None = None,
_source_file: str | None = None,
_source_line: int | None = None,
) -> None:
...

Parameters:

  1. name:

    Type
    str
  2. description:

    Type
    str | None
  3. specified_by_url:

    Type
    str | None
  4. serialize:

    Type
    Callable | None
  5. parse_value:

    Type
    Callable | None
  6. parse_literal:

    Type
    Callable | None
  7. directives:

    Type
    Iterable[object]
    Default
    ()
  8. implementation:

    Type
    GraphQLScalarType | None
    Default
    None
  9. _source_file:

    Type
    str | None
    Default
    None
  10. _source_line:

    Type
    int | None
    Default
    None

Methods:

Attributes:

  1. name:

    Type
    str
  2. description:

    Type
    str | None
  3. specified_by_url:

    Type
    str | None
  4. serialize:

    Type
    Callable | None
  5. parse_value:

    Type
    Callable | None
  6. parse_literal:

    Type
    Callable | None
  7. directives:

    Type
    Iterable[object]
  8. implementation:

    Type
    GraphQLScalarType | None
  9. is_graphql_generic:

    Type
    bool