Fix tests
This commit is contained in:
parent
07ed785a51
commit
42e2780142
4 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
mod interface {
|
mod interface {
|
||||||
use crate::{
|
use crate::{
|
||||||
graphql_interface, graphql_object,
|
graphql_interface, graphql_object, graphql_value,
|
||||||
schema::model::RootNode,
|
schema::model::RootNode,
|
||||||
types::scalars::{EmptyMutation, EmptySubscription},
|
types::scalars::{EmptyMutation, EmptySubscription},
|
||||||
GraphQLObject,
|
GraphQLObject,
|
||||||
|
@ -96,7 +96,7 @@ mod interface {
|
||||||
|
|
||||||
mod union {
|
mod union {
|
||||||
use crate::{
|
use crate::{
|
||||||
graphql_object, graphql_union,
|
graphql_object, graphql_union, graphql_value,
|
||||||
schema::model::RootNode,
|
schema::model::RootNode,
|
||||||
types::scalars::{EmptyMutation, EmptySubscription},
|
types::scalars::{EmptyMutation, EmptySubscription},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
graphql_vars,
|
graphql_value, graphql_vars,
|
||||||
introspection::IntrospectionFormat,
|
introspection::IntrospectionFormat,
|
||||||
schema::model::RootNode,
|
schema::model::RootNode,
|
||||||
tests::fixtures::starwars::schema::{Database, Query},
|
tests::fixtures::starwars::schema::{Database, Query},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::value::Value;
|
use crate::graphql::{self, Value};
|
||||||
|
|
||||||
// Sort a nested schema Value.
|
// Sort a nested schema Value.
|
||||||
// In particular, lists are sorted by the "name" key of children, if present.
|
// In particular, lists are sorted by the "name" key of children, if present.
|
||||||
|
@ -34,7 +34,7 @@ pub(super) fn sort_schema_value(value: &mut Value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn schema_introspection_result() -> Value {
|
pub(crate) fn schema_introspection_result() -> Value {
|
||||||
let mut v = graphql_value!({
|
let mut v = graphql::value!({
|
||||||
"__schema": {
|
"__schema": {
|
||||||
"description": null,
|
"description": null,
|
||||||
"queryType": {
|
"queryType": {
|
||||||
|
@ -1451,7 +1451,7 @@ pub(crate) fn schema_introspection_result() -> Value {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn schema_introspection_result_without_descriptions() -> Value {
|
pub(crate) fn schema_introspection_result_without_descriptions() -> Value {
|
||||||
let mut v = graphql_value!({
|
let mut v = graphql::value!({
|
||||||
"__schema": {
|
"__schema": {
|
||||||
"queryType": {
|
"queryType": {
|
||||||
"name": "Query"
|
"name": "Query"
|
||||||
|
|
|
@ -1144,9 +1144,9 @@ impl GraphQLTypeDefiniton {
|
||||||
#where_clause
|
#where_clause
|
||||||
{
|
{
|
||||||
fn to_input_value(&self) -> ::juniper::InputValue<#scalar> {
|
fn to_input_value(&self) -> ::juniper::InputValue<#scalar> {
|
||||||
::juniper::InputValue::object(vec![
|
::juniper::InputValue::object([
|
||||||
#( #to_inputs )*
|
#( #to_inputs )*
|
||||||
].into_iter().collect())
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue