-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
Closes: #187 Summary: Adds support to specifying a field being of type GraphQLID. Add `format: id` or `format: uuid`. Test Plan: 1. Change directory to `packages/openapi-to-graphql` 2. Run `npm run start_dev` 3. Browse to localhost:3000/graphql 4. Click on "Docs" 5. Click on "Query" 6. Observe the type of properties whose names end with "id" Before: company(id: String!): Company office(accept: Accept, id: Int!): Office productWithId(productId: String!, productTag: String!): ProductWithId productsReviews(id: String!, limit: Int, productTag: String): [ProductsReviewsListItem] After: company(id: ID!): Company office(accept: Accept, id: ID!): Office productWithId(productId: ID!, productTag: String!): ProductWithId productsReviews(id: ID!, limit: Int, productTag: String): [ProductsReviewsListItem] 7. Click on "Company" 8. Observe the type of "id" Before: id: String The identifier of a company After: id: ID The identifier of a company 9. Click "Back" twice 10. Click on "Mutation" 11. Click on "ProductWithIdInput" 12. Observe the type of "productId" Before: productId: String The id of the product After: productId: ID The id of the product Signed-off-by: Omar Chehab <[email protected]>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.