GraphQL projection
SDL, Postman, and OpenAPI projected from .gg topologies via @a0n/x-gql. GraphQL is not the authority — the topology is.
x-gql API (scan.gg)
directive @auth(can: String!) on FIELD_DEFINITION
"""Generated from GGL node: (request:Request)"""
type Request {
id: ID!
repo: String
}
input RequestInput {
repo: String
}
"""Generated from GGL node: (scan_result:ScanResult)"""
type ScanResult {
id: ID!
status: String
repo: String
}
input ScanResultInput {
status: String
repo: String
}
type Query {
scanResult: ScanResult @auth(can: "scan/read")
}
x-gql API (users.gg)
directive @auth(can: String!) on FIELD_DEFINITION
"""Generated from GGL node: (root:Root)"""
type Root {
id: ID!
title: String
}
input RootInput {
title: String
}
"""Generated from GGL node: (read_user:User)"""
type User {
id: ID!
name: String
age: String
active: String
}
input UserInput {
name: String
age: String
active: String
}
type Query {
readUser: User @auth(can: "user/read")
}
type Mutation {
saveUser(inputUser: UserInput): User!
}