Akryum / Akryum/moquerie

Generate expected format depending on custom scalars (Date)

Đang mở
#8 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
211
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.