Exemple #1
0
        public void NoMutationDefined_ShouldReturnNullInIntrospection()
        {
            var emptySchema = new GraphQLSchema();

            emptySchema.Query(new T1());

            var result = emptySchema.Execute("{ __schema { mutationType { name } } }");

            Assert.IsNull(result.data.__schema.mutationType);
        }