Skip to main content

Module proto_gen

Module proto_gen 

Source
Expand description

GraphQL → Protobuf type mapping and .proto file generation.

Functions§

generate_proto_file
Generate a complete .proto file from a compiled schema.
graphql_to_proto_type
Map a GraphQL type name to a Protobuf type name.
graphql_to_row_view_type
Map a GraphQL type name to a RowViewColumnType for SQL view generation.
needs_well_known_import
Returns true if the given protobuf type requires an import of a well-known type .proto file.