UNPKG

@graphql-codegen/python-common

Version:

Shared Python-specific helpers (reserved keywords, scalar mapping, identifier naming) for @graphql-codegen/python and @graphql-codegen/python-operations.

15 lines (14 loc) • 460 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PYTHON_SCALARS = void 0; /** * Default GraphQL scalar -> Python type mapping. Custom scalars fall back to * `Any`. */ exports.PYTHON_SCALARS = { ID: { input: 'str', output: 'str' }, String: { input: 'str', output: 'str' }, Int: { input: 'int', output: 'int' }, Float: { input: 'float', output: 'float' }, Boolean: { input: 'bool', output: 'bool' }, };