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 {
|
||||
use crate::{
|
||||
graphql_interface, graphql_object,
|
||||
graphql_interface, graphql_object, graphql_value,
|
||||
schema::model::RootNode,
|
||||
types::scalars::{EmptyMutation, EmptySubscription},
|
||||
GraphQLObject,
|
||||
|
@ -96,7 +96,7 @@ mod interface {
|
|||
|
||||
mod union {
|
||||
use crate::{
|
||||
graphql_object, graphql_union,
|
||||
graphql_object, graphql_union, graphql_value,
|
||||
schema::model::RootNode,
|
||||
types::scalars::{EmptyMutation, EmptySubscription},
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::collections::HashSet;
|
||||
|
||||
use crate::{
|
||||
graphql_vars,
|
||||
graphql_value, graphql_vars,
|
||||
introspection::IntrospectionFormat,
|
||||
schema::model::RootNode,
|
||||
tests::fixtures::starwars::schema::{Database, Query},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::value::Value;
|
||||
use crate::graphql::{self, Value};
|
||||
|
||||
// Sort a nested schema Value.
|
||||
// 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 {
|
||||
let mut v = graphql_value!({
|
||||
let mut v = graphql::value!({
|
||||
"__schema": {
|
||||
"description": null,
|
||||
"queryType": {
|
||||
|
@ -1451,7 +1451,7 @@ pub(crate) fn schema_introspection_result() -> Value {
|
|||
}
|
||||
|
||||
pub(crate) fn schema_introspection_result_without_descriptions() -> Value {
|
||||
let mut v = graphql_value!({
|
||||
let mut v = graphql::value!({
|
||||
"__schema": {
|
||||
"queryType": {
|
||||
"name": "Query"
|
||||
|
|
|
@ -1144,9 +1144,9 @@ impl GraphQLTypeDefiniton {
|
|||
#where_clause
|
||||
{
|
||||
fn to_input_value(&self) -> ::juniper::InputValue<#scalar> {
|
||||
::juniper::InputValue::object(vec![
|
||||
::juniper::InputValue::object([
|
||||
#( #to_inputs )*
|
||||
].into_iter().collect())
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue