Commit Graph

35 Commits

Author SHA1 Message Date
Ben Kraft dc68d99de6 fix tests 2020-05-01 18:50:01 -07:00
Ben Kraft 5042a9a549 allow omitting context 2020-05-01 18:45:39 -07:00
Ben Kraft 1156e6ceae minor cleanup 2020-05-01 18:22:56 -07:00
Ben Kraft 2fb9cd53ba clean up handling of scalars 2020-04-10 18:20:17 -07:00
Ben Kraft 1cde2fe351 slightly better test 2020-04-10 18:17:27 -07:00
Ben Kraft 7ab06dfd30 add support for enums 2020-04-10 18:16:32 -07:00
Ben Kraft 9510470937 add support for non-scalar inputs 2020-04-10 17:02:18 -07:00
Ben Kraft b600df7877 big refactor to put the codegen onto methods of an object 2020-04-10 15:21:23 -07:00
Ben Kraft dfea9bf128 push type-name into types.go 2020-04-10 14:30:56 -07:00
Ben Kraft 4f02619b0b break up typegen a bit better 2020-04-02 19:24:42 -07:00
Ben Kraft 8d87040069 refactor typegen to explicitly handle kinds 2020-04-02 18:35:04 -07:00
Ben Kraft f8545f7e76 refactor typegen to use builder 2020-04-02 18:27:08 -07:00
Ben Kraft d039587b39 pass errors a few more places 2020-04-02 18:22:07 -07:00
Ben Kraft 35f94b3c48 some tests for type-generation 2020-04-02 18:16:40 -07:00
Ben Kraft af5d1bd542 lowercase for arguments 2020-03-27 18:01:56 -07:00
Ben Kraft 9e01efdd88 Actually configure package name 2020-03-27 17:45:29 -07:00
Ben Kraft 01b903b053 Doc comments 2020-03-27 17:44:30 -07:00
Ben Kraft c536227d32 make config file optional 2020-03-27 16:37:48 -07:00
Ben Kraft 9074926cea Set up a test 2020-03-27 15:57:22 -07:00
Ben Kraft 0dcd124c8e fix filenames, set up go generate 2020-02-06 18:52:00 -08:00
Ben Kraft c19f62c2c7 non-ridiculous handling of scalars 2020-01-17 18:23:29 -05:00
Ben Kraft 35699a73ef more README stuff, example README, other misc cleanup 2020-01-16 17:56:13 -08:00
Ben Kraft bf5d04939e WIP on config 2020-01-03 11:02:31 -08:00
Ben Kraft 12605986d0 do our own aliasing if the queries aren't right 2020-01-02 19:01:26 -08:00
Ben Kraft 0bce896722 break up Generate 2020-01-02 18:48:29 -08:00
Ben Kraft 7dfd03738c genql: bits of whitespace 2020-01-02 18:00:23 -08:00
Ben Kraft 9746c818fd genql: quick hack at variables 2020-01-02 17:52:55 -08:00
Ben Kraft 77670363d3 genql: minor cleanups 2020-01-02 16:40:47 -08:00
Ben Kraft 4d880a701e move a bunch of the logic from generated into client 2019-12-25 16:26:32 -05:00
Ben Kraft 9d4b5559f4 wire up example by way of testing 2019-12-24 16:05:10 -05:00
Ben Kraft 4a2134c533 add some TODOs 2019-12-23 23:26:51 -05:00
Ben Kraft e8b5ccbcda generates something mostly plausiblegit add . 2019-12-23 23:22:19 -05:00
Ben Kraft 7a20e2ae74 fill out the easy parts of the codegen 2019-12-23 21:07:07 -05:00
Ben Kraft efa9ccd122 add basic query struct, support 1.12 2019-12-23 19:35:38 -05:00
Ben Kraft a23b0e3756 sketches of generated graphql client 2019-12-21 00:03:19 -05:00