Akryum / Akryum/moquerie

Generate expected format depending on custom scalars (Date)

Offen
#8 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
211
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello! It seems the generated format for fields depending on custom scalars does not correspond. Not sure it's something we could add/fix? I know we could override it in the resolvers files, but is it possible to have the expected format directly in the generated json mock file?

Schema:
Screenshot 2024-12-10 at 15 43 20

Custom scalar (Date) defined in my code:
-> The returned value is an Integer
![Screenshot 2024-12-10 at 15 46 13](https://github.com/user-attachments/assets/734d22f0-565e-4f48-a781-0f5afb0c3e27)

Moquerie dashboard:
-> We set any custom value in timestamp format
Screenshot 2024-12-10 at 15 41 17

Generated mock file
-> Should be an Integer instead of String?
Screenshot 2024-12-10 at 15 44 02

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.