コード例 #1
0
        public async Task filter_required_single_navigation_property()
        {
            String query = @"
               {
                  hero {
                    name
                    actor(birthday: ""1951-09-25"") {
                        name
                        birthday
                    }
                  }
               }
            ";

            String result = await Fixture.Execute(query);

            TestResults.Assert(result);
        }
コード例 #2
0
        public async Task can_query_for_the_id_and_friends_of_r2()
        {
            String query = @"
                query HeroNameAndFriendsQuery {
                  hero {
                    id
                    name
                    friends {
                      name
                    }
                  }
                }
            ";

            String result = await Fixture.Execute(query);

            TestResults.Assert(result);
        }
コード例 #3
0
        public async Task create_generic_query_that_fetches_luke()
        {
            String query = @"
                query humanQuery($id: ID) {
                  human(id: $id) {
                    name
                  }
                }
            ";

            var inputs = new Inputs(new Dictionary <String, Object>()
            {
                { "id", "1" }
            });
            String result = await Fixture.Execute(query, inputs);

            TestResults.Assert(result);
        }
コード例 #4
0
        public async Task referenced_models()
        {
            await can_query_for_droids();

            String query = @"
               {
                  orders2 {
                    name
                    customer {
                        name
                    }
                  }
               }
            ";

            String result = await Fixture.Execute(query);

            TestResults.Assert(result);
        }
コード例 #5
0
        public async Task can_query_for_friends_of_humans()
        {
            String query = @"
               {
                  human(id: ""1"") {
                    name
                    friends {
                      name
                      appearsIn {
                        name
                      }
                    }
                  }
               }
            ";

            String result = await Fixture.Execute(query);

            TestResults.Assert(result);
        }