Update graphql schema, update schema config
This commit is contained in:
parent
9ab8b8d3e4
commit
6a51052b53
|
|
@ -1,3 +1,13 @@
|
|||
{
|
||||
"schemaPath": "server/schema.graphql"
|
||||
"projects": {
|
||||
"private": {
|
||||
"schemaPath": "./server/schema.graphql",
|
||||
"includes": ["./client/src/graphql/**"],
|
||||
"excludes": ["./client/src/graphql/gql/public-client/**"]
|
||||
},
|
||||
"public": {
|
||||
"schemaPath": "./server/schema-public.graphql",
|
||||
"includes": ["./client/src/graphql/gql/public-client/*.gql"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
schema: 'server/schema.graphql'
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import BETA_LOGIN_MUTATION from '@/graphql/gql/mutations/betaLogin.gql';
|
||||
import BETA_LOGIN_MUTATION from 'gql/public-client/betaLogin.gql';
|
||||
import {ValidationObserver} from 'vee-validate';
|
||||
|
||||
const ValidatedInput = () => import('@/components/validation/ValidatedInput');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
#!/bin/bash
|
||||
python manage.py graphql_schema
|
||||
sed -i 's/Node,/Node \&/g' schema.graphql
|
||||
|
||||
python manage.py graphql_schema --schema api.schema_public.schema --out schema-public.graphql
|
||||
sed -i 's/Node,/Node \&/g' schema-public.graphql
|
||||
|
|
|
|||
|
|
@ -0,0 +1,51 @@
|
|||
schema {
|
||||
query: PublicQuery
|
||||
mutation: PublicMutation
|
||||
}
|
||||
|
||||
input BetaLoginInput {
|
||||
usernameInput: String
|
||||
passwordInput: String
|
||||
clientMutationId: String
|
||||
}
|
||||
|
||||
type BetaLoginPayload {
|
||||
success: Boolean
|
||||
message: String
|
||||
clientMutationId: String
|
||||
}
|
||||
|
||||
type DjangoDebug {
|
||||
sql: [DjangoDebugSQL]
|
||||
}
|
||||
|
||||
type DjangoDebugSQL {
|
||||
vendor: String!
|
||||
alias: String!
|
||||
sql: String
|
||||
duration: Float!
|
||||
rawSql: String!
|
||||
params: String!
|
||||
startTime: Float!
|
||||
stopTime: Float!
|
||||
isSlow: Boolean!
|
||||
isSelect: Boolean!
|
||||
transId: String
|
||||
transStatus: String
|
||||
isoLevel: String
|
||||
encoding: String
|
||||
}
|
||||
|
||||
interface Node {
|
||||
id: ID!
|
||||
}
|
||||
|
||||
type PublicMutation {
|
||||
betaLogin(input: BetaLoginInput!): BetaLoginPayload
|
||||
_debug: DjangoDebug
|
||||
}
|
||||
|
||||
type PublicQuery {
|
||||
node(id: ID!): Node
|
||||
_debug: DjangoDebug
|
||||
}
|
||||
|
|
@ -335,6 +335,7 @@ input ContentElementInput {
|
|||
id: String
|
||||
type: InputTypes!
|
||||
value: ContentElementValueInput
|
||||
contents: [ContentElementInput]
|
||||
}
|
||||
|
||||
input ContentElementValueInput {
|
||||
|
|
@ -589,6 +590,7 @@ enum InputTypes {
|
|||
link_block
|
||||
video_block
|
||||
document_block
|
||||
content_list_item
|
||||
}
|
||||
|
||||
type InstrumentBookmarkNode implements Node {
|
||||
|
|
@ -883,6 +885,7 @@ type ProjectNode implements Node {
|
|||
entries: [ProjectEntryNode]
|
||||
pk: Int
|
||||
entriesCount: Int
|
||||
owner: PublicUserNode
|
||||
}
|
||||
|
||||
type PublicUserNode implements Node {
|
||||
|
|
|
|||
Loading…
Reference in New Issue