Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
b8207160
Commit
b8207160
authored
5 years ago
by
jm
Browse files
Options
Downloads
Patches
Plain Diff
[ref] gva: remove mutation
parent
eb4543de
No related branches found
No related tags found
1 merge request
!124
WIP: Resolve "Implement Client API GVA : GraphQL Verification Api"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/modules/gva/resources/schema.gql
+0
-3
0 additions, 3 deletions
lib/modules/gva/resources/schema.gql
lib/modules/gva/src/schema.rs
+2
-7
2 additions, 7 deletions
lib/modules/gva/src/schema.rs
with
2 additions
and
10 deletions
lib/modules/gva/resources/schema.gql
+
0
−
3
View file @
b8207160
schema
{
schema
{
query
:
Query
query
:
Query
mutation
:
Mutation
}
}
type
Query
{
type
Query
{
current
:
Block
@
juniper
(
ownership
:
"
owned
"
)
current
:
Block
@
juniper
(
ownership
:
"
owned
"
)
}
}
type
Mutation
type
Block
{
type
Block
{
version
:
Int
!
version
:
Int
!
currency
:
String
!
currency
:
String
!
...
...
This diff is collapsed.
Click to expand it.
lib/modules/gva/src/schema.rs
+
2
−
7
View file @
b8207160
...
@@ -19,6 +19,7 @@ use crate::context::Context;
...
@@ -19,6 +19,7 @@ use crate::context::Context;
use
dubp_block_doc
::
block
::
BlockDocumentTrait
;
use
dubp_block_doc
::
block
::
BlockDocumentTrait
;
use
dubp_common_doc
::
traits
::
Document
;
use
dubp_common_doc
::
traits
::
Document
;
use
durs_bc_db_reader
::
BcDbRo
;
use
durs_bc_db_reader
::
BcDbRo
;
use
juniper
::
EmptyMutation
;
use
juniper
::
Executor
;
use
juniper
::
Executor
;
use
juniper
::
FieldResult
;
use
juniper
::
FieldResult
;
use
juniper_from_schema
::
graphql_schema_from_file
;
use
juniper_from_schema
::
graphql_schema_from_file
;
...
@@ -86,12 +87,6 @@ impl BlockFields for Block {
...
@@ -86,12 +87,6 @@ impl BlockFields for Block {
}
}
}
}
pub
struct
Mutation
;
impl
MutationFields
for
Mutation
{
}
pub
fn
create_schema
()
->
Schema
{
pub
fn
create_schema
()
->
Schema
{
Schema
::
new
(
Query
{},
Mutation
{}
)
Schema
::
new
(
Query
{},
Empty
Mutation
::
new
()
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment