def _wrap_schema(self, dbver, con_args, schema) -> CompilerDatabaseState: gqlcore = graphql.GQLCoreSchema(schema) return CompilerDatabaseState( dbver=dbver, con_args=con_args, schema=schema, gqlcore=gqlcore)
def _get_gqlcore( std_schema: s_schema.FlatSchema, user_schema: s_schema.FlatSchema, global_schema: s_schema.FlatSchema, ) -> graphql.GQLCoreSchema: return graphql.GQLCoreSchema( s_schema.ChainedSchema(std_schema, user_schema, global_schema))
def _wrap_schema( self, dbver: bytes, schema: s_schema.Schema, cached_reflection: immutables.Map[str, Tuple[str, ...]], ) -> CompilerDatabaseState: gqlcore = graphql.GQLCoreSchema(schema) return CompilerDatabaseState( dbver=dbver, schema=schema, cached_reflection=cached_reflection, gqlcore=gqlcore, )