Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dr3/mesh-debug
Mesh bug replication examples
https://github.com/dr3/mesh-debug
Last synced: 11 days ago
JSON representation
Mesh bug replication examples
- Host: GitHub
- URL: https://github.com/dr3/mesh-debug
- Owner: dr3
- Created: 2023-04-25T17:27:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T11:51:55.000Z (almost 2 years ago)
- Last Synced: 2025-01-14T22:33:32.157Z (20 days ago)
- Language: TypeScript
- Size: 264 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mesh-debug
This repo includes reproduction examples of a few mesh bugs
## Setup
```sh
nvm use
```### Optional
```sh
for d in ./*/ ; do (cd "$d" && yarn); done
```## Examples
### /working-mesh-helix
This is a working example to start from
```sh
cd working-mesh-helix && yarn && yarn test
```#### What happens?
Tests pass :tada:
---
### /same-response-issue
When 2 status codes have the same response type, e.g. 200 & 400, the 400 wont be handled nicely
```sh
cd same-response-issue && yarn && yarn test
```#### What happens?
Get `"HTTP Error: 400, Could not invoke operation GET /pet/{args.petId}"` instead of it returning the data as unioned response
---
### /missing-naming-convention
When You have 2 sources, but only 1 has naming convention transform, it errors when building mesh
```sh
cd missing-naming-convention && yarn && yarn test
```#### What happens?
Get error `Error: Unable to merge GraphQL directive "httpOperation"`
---
### /bare-enum-sending
When using bare namingConvention transform, enums arnt converted to their original casing before being sent to upstream
```sh
cd bare-enum-sending && yarn && yarn test
```#### What happens?
Upstream server gets enum value `FLUFFYBOI` instead of `FluffyBoi` which it wants
---
### /naming-convention-originalName
When using bare namingConvention transform, get error "Cannot read properties of undefined (reading 'originalName')"
```sh
cd naming-convention-originalName && yarn && yarn test
```#### What happens?
Get error `"Cannot read properties of undefined (reading 'originalName')"`
---
### /union-renaming
Renaming a type within an union causes error
```sh
cd union-renaming && yarn && yarn test
```#### What happens?
Get error `Abstract type \"pet_by_petId_response\" was resolved to a type \"ServerError\" that does not exist inside the schema.`
---
### /datetime-timezone
Dates are converted to UTC
Issue: https://github.com/Urigo/graphql-mesh/issues/5229
```sh
cd datetime-timezone && yarn && yarn test
```#### What happens?
Get `2016-02-01T11:00:00.000Z` instead of `2016-02-01T00:00:00-11:00`
---
### /ts-artifacts
Build mesh gets typescript error
```sh
cd ts-artifacts && yarn && yarn test
```#### What happens?
Get error `TypeError: Cannot read properties of undefined (reading 'get')`