示例#1
0
        public QueryRoot() : base("QueryRoot", "")
        {
            var complicatedArgs = new ComplicatedArgs();

            this.Field("someBox", () => null as ISomeBox);
            this.Field("connection", () => new ConnectionType());
            this.Field("foo", (int?a, int?b, int?c) => "bar");
            this.Field("bar", (int?a) => "foo");
            this.Field("sum", (int?[] arg) => arg.Sum());
            this.Field("field", (string a, string b, string c) => this);
            this.Field("field2", () => new FieldType());
            this.Field("nonNullField", (NonNullable <string> a) => a);
            this.Field("jagged", (IEnumerable <string[][]> jagged) => jagged);
            this.Field("interfaceObject", () => (ComplicatedInterface) new ComplicatedObject());
            this.Field("interfaceObjectArray", () => new List <ComplicatedInterface>()
            {
                new ComplicatedObject()
            });
            this.Field("complicatedArgs", () => complicatedArgs);
            this.Field("insertInputObject", (ComplicatedObject inputObject) => inputObject);
            this.Field("idArg", (ID id) => id);
        }
示例#2
0
        public QueryRoot() : base("QueryRoot", "")
        {
            var complicatedArgs = new ComplicatedArgs();

            this.Field("complicatedArgs", () => complicatedArgs);
        }