@graphql-codegen/python-common
Version:
Shared Python-specific helpers (reserved keywords, scalar mapping, identifier naming) for @graphql-codegen/python and @graphql-codegen/python-operations.
12 lines (11 loc) • 355 B
JavaScript
/**
* Default GraphQL scalar -> Python type mapping. Custom scalars fall back to
* `Any`.
*/
export const 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' },
};