Ben Kraft
d449acdda3
Clarify object type documentation
...
Craig pointed out this is a bit confusing when you don't have all the
fields. Now we say so, but still include the type's description in case
it's useful.
Fixes #37 .
2021-04-23 18:13:32 -07:00
Ben Kraft
748f2cf072
Add documentation to types and fields
...
Fixes #3 .
2021-04-21 18:07:36 -07:00
Ben Kraft
32fea7fae4
fix incorrect enum-value type names for enums used as inputs
...
luckily webapp is now a much more complete test suite and genqlient's
own tests, so it caught this!
2021-04-21 17:41:33 -07:00
Ben Kraft
2272ad8a12
allow map[string]interface{}, and other such things, as scalars
2021-04-21 11:32:49 -07:00
Ben Kraft
234c683e21
add a test with a pile of nested interfaces
2021-04-15 18:46:24 -07:00
Ben Kraft
40fc7fdbc5
handle nested lists correctly
2021-04-15 17:49:09 -07:00
Ben Kraft
ade01c9280
test for uppercasing aliases
2021-04-15 15:50:22 -07:00
Ben Kraft
ddf4b03350
allow interface{} as a scalar
2021-04-15 11:50:52 -07:00
Ben Kraft
136ac7729f
include alias even if we don't need it
2021-04-15 11:36:46 -07:00
Ben Kraft
e597cac74c
add option to force using a pointer
2021-04-12 16:01:21 -07:00
Ben Kraft
16523c1f81
add omitempty
2021-04-09 11:51:30 -07:00
Ben Kraft
25a2b45ccc
redo comment parsing to set up for field-level config
2021-04-09 09:53:53 -07:00
Ben Kraft
b4e8316c6a
add support for custom scalars -- mainly adding proper import machinery
2021-04-08 13:07:31 -07:00
Ben Kraft
0432f3f434
miscellaneous test coverage
2021-04-02 16:34:15 -07:00
Ben Kraft
edb12e3e0a
pretty-print JSON in query-export
2021-04-02 16:01:52 -07:00
Ben Kraft
9fe8f09e8c
more miscellaneous fixes while integrating into webapp
2021-04-01 15:04:36 -07:00
Ben Kraft
fbf00f3bef
add option to export all operations
2021-04-01 13:11:23 -07:00
Ben Kraft
de038dc428
shorten enum and input-object type-names
2021-04-01 12:40:54 -07:00
Ben Kraft
eae68e43c9
allow globbing, and extract queries from .go files
2021-04-01 12:34:51 -07:00