-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
array (list) input #32
Comments
@lkleuver PTAL at #10 (comment). 😉 |
@lkleuver We indeed haven't implemented array support yet - definitely a fundamental omission! if you're looking to take a crack at this, it'd be a great help! |
@baohouse Are you working on a pull request?
PTAL at my vision: #10 (comment). It's highly inspired by Chrome DevTools. Looks like using curly braces for objects (non-leaf fields that has childs) is also a good idea. PTAL at #10 (comment). |
Also it would be really nice to visually separate the input fields (arguments) from the output (asked) fields by placing input fields into round brackets. But this may out of scope of this pull request. |
@FluorescentHallucinogen Ah yes, it's a high priority for one of our customers, so, I am taking a stab at it. Thanks for pointing to the vision, I have a clear idea now. I also see where to start working graphiql-explorer/src/Explorer.js Line 728 in 2786cab
|
@baohouse Any progress? |
@FluorescentHallucinogen Yeah, I have a sense of how it all works together. I'm still far from completing it per the vision. Here's the tasklist:
|
@baohouse Could you please create a WIP pull request?
BTW, this is what annoys me in the Explorer. If I open rotating triangle, Explorer adds this to the query. What if I want to just see what's inside without adding this to the query? So it would be really nice to change this behavior in Explorer globally. This may out of scope of this pull request. But we should provide consistent behavior in Explorer.
What about checkboxes in front of list item fields, not in front of list field? IMO, we should preserve leading checkboxes for "insert all child fileds" feature i.e. check all nested checkboxes at once automatically and then manually uncheck only unnecessary instead of check them only one by one manually (this is very useful for types with a large number of fields). See detail explanation how this might works: #10 (comment). BTW, this implies the need of a third "indeterminate" state for checkboxes in addition to "unchecked" and "checked" (if not all child checkboxes checked). See |
I see this pull request grows like a snowball… @baohouse Feel free to drop (throw out) advanced features like "duplicate element" and "reorder element by drag-and-drop". Please let me know if I can help in some way too. ;) |
Note this behaviour is currently possible (though not intuitive): |
I know about this. But currently it has low feature discoverability. How users learn about this hotkey? |
I agree this is not well advertised or intuitive at all. Aside from reading the source I am not sure how you would be expected to discover this feature, which is a shame |
It's intended. You should not be selecting all fields by default. If you
know that - and the implications of it - and still want to do it, then you
probably have searched enough and found out how to do so.
…On Sat, Apr 25, 2020 at 6:34 AM Timothy Lehner ***@***.***> wrote:
@FluorescentHallucinogen <https://github.com/FluorescentHallucinogen>
I know about this. But currently it has low feature discoverability. How
users learn about this hotkey?
I agree this is not well advertised or intuitive at all. Aside from
reading the source I am not sure how you would be expected to discover this
feature, which is a shame
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAITYGHXQPXN52GCUBQE4TROLRFXANCNFSM4JRVQZZQ>
.
|
But it's not documented anywhere. ¯_(ツ)_/¯ If I create pull request that implements behavior described in #10 (comment) (clicking on the rotating triangles and field names still only expand child fields without checking (inserting) them), will you merge it? |
@FluorescentHallucinogen I'll work on migrating my work onto a clean branch off the master. I realized that not only I was working off an older version of the file, but also a Flow-to-Typescript translated file that I did for the purpose of dropping it into my app's codebase. |
@baohouse Any news? |
@baohouse Any progress? Do you need any help? |
@FluorescentHallucinogen Sorry, I've been swamped with work. I don't think I'll have time to properly merge in changes. The first problem was that I had converted the GraphiQL file into Typescript for my app, and "undoing" those changes to isolate the feature-specific ones was tedious. Can I send you a copy of the file in its current state? |
Yes, please. You can use https://gist.github.com. |
@FluorescentHallucinogen Here's the gist The main changes I made were to support object-based custom args, and list types (both object lists and scalar lists). |
Is there any progress on this ? |
Is there any progress on this? |
Bumping this. @baohouse do you think you could make the snippet as a repository? What's needed for it to work completely? It seemed a bit buggy |
bumping this as well - would be happy to help get this supported |
Pull requests are welcome. See #10 (comment) for what this might look like. ;) |
Bumping this |
my schema has the following input:
coordinates: [Float!]!
but it seems the explorer only looks at the leaf argument type. (unwrapInputType)
Am I missing something, or is there perhaps work in progress before I start implementing it?
The text was updated successfully, but these errors were encountered: