示例#1
0
 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)
示例#2
0
文件: compiler.py 项目: fantix/edgedb
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))
示例#3
0
 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,
     )