Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

feat: add graphql cli #131

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .graphqlrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
schema: https://raw.githubusercontent.com/rkpattnaik780/enmasse/14c4e82a0c13370d5e14a74669982e1a1105a0ba/console/console-init/ui/mock-console-server/schema.graphql
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have actual schema available somewhere? This looks like enmasse.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed - worth getting one into https://github.com/strimzi/strimzi-admin as a part of this issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This schema can then be used/referenced in our MockApi too (in effect completing #50 )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have actual schema available somewhere? This looks like enmasse.

yes, This is enmasse schema. I suggested it for testing purpose. Later we can point out the actual schema.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthew-chirgwin Do you have some barebones of the schema. Can I take look on it.
Little bit context. I'm involved in GraphQL spec and working on couple other standards like https://graphql-crud.org

We working on internal company standards for GraphQL schema and being involved in the process for creating schema for strimzi UI will be helpful..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in replying @wtrocki - we have a very barebones/placeholder schema here:

export const schema =
, but this will need to be refined in collaberation with @gmcrobert , who will be implementing the 'real' version of it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wtrocki I am looking at defining the schema and would be interested in chatting to you about standards around things like identity, paging, etc. Shall I start a conversation in the strimzi-ui-dev slack channel?

Copy link

@wtrocki wtrocki Dec 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Feel free to ping me anywhere.
As for standards we have been using (and promoting) https://graphqlcrud.org

This comes with generators to reduce boilerplate etc. I have been demoing this already to some folks using

https://github.com/wtrocki/strimzi-experiments

See model.graphql as input and finalSchema which is the output. There is numerous benefits of using that format I can chat about


extensions:
codegen:
generates:
./generated/entityModelConstants.ts:
plugins:
- typescript
- typescript-react-apollo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some extra flags might be needed. HOC vs Hooks etc.

config:
skipTypeNameForRoot: true
skipTypename: true
Loading