mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
38 lines
548 B
GraphQL
38 lines
548 B
GraphQL
# Extend graph with local types
|
|
type Network {
|
|
isOffline: Boolean!
|
|
}
|
|
|
|
enum View {
|
|
SIGN_UP
|
|
SIGN_IN
|
|
FORGOT_PASSWORD
|
|
}
|
|
|
|
type AuthPopup {
|
|
open: Boolean!
|
|
focus: Boolean!
|
|
view: View
|
|
}
|
|
|
|
extend type Comment {
|
|
pending: Boolean
|
|
}
|
|
|
|
type Local {
|
|
network: Network!
|
|
assetID: String
|
|
assetURL: String
|
|
commentID: String
|
|
authPopup: AuthPopup!
|
|
authToken: String
|
|
# Used to invalidate the `me` endpoint.
|
|
# This is incremented whenever the auth status
|
|
# might have changed.
|
|
authRevision: Int!
|
|
}
|
|
|
|
extend type Query {
|
|
local: Local!
|
|
}
|