Skip to content

dr3/mesh-debug

Repository files navigation

mesh-debug

This repo includes reproduction examples of a few mesh bugs

Setup

nvm use

Optional

for d in ./*/ ; do (cd "$d" && yarn); done

Examples

/working-mesh-helix

This is a working example to start from

cd working-mesh-helix && yarn && yarn test

What happens?

Tests pass 🎉


/same-response-issue

When 2 status codes have the same response type, e.g. 200 & 400, the 400 wont be handled nicely

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

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

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')"

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

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: ardatan/graphql-mesh#5229

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

cd ts-artifacts && yarn && yarn test

What happens?

Get error TypeError: Cannot read properties of undefined (reading 'get')

About

Mesh bug replication examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published