Fix tests

This commit is contained in:
tyranron 2022-06-23 16:41:16 +02:00
parent 07ed785a51
commit 42e2780142
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0
4 changed files with 8 additions and 8 deletions

View file

@ -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},
};

View file

@ -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},

View file

@ -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"

View file

@ -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())
])
}
}