Skip to content

Conversation

@clintjeff2
Copy link
Contributor

πŸ“ Implement Order Module (CRUD + Status Update)

πŸ› οΈ Issue

πŸ“– Description

This pull request implements a full-featured GraphQL Order module using NestJS and Prisma. It includes all key CRUD operations and a robust order status update flow using enum-based validation.

βœ… Changes made

  • βœ… Created Order entity with GraphQL schema and Prisma model
  • βœ… Implemented CreateOrderInput, UpdateOrderStatusInput, and enum OrderStatus
  • βœ… Added query resolvers: getOrdersByBuyer, getOrdersBySeller, getOrder
  • βœ… Added mutation resolvers: createOrder, updateOrderStatus
  • βœ… Integrated GraphQL enum registration for OrderStatus
  • βœ… Fully tested mutations and queries via Postman
  • βœ… Implemented error handling and enum compatibility fixes

πŸ§ͺ Testing Summary

All GraphQL queries and mutations were tested using Postman with variable-based requests, ensuring type safety and correct enum resolution in the schema.

πŸ–ΌοΈ Media (screenshots)

1. βœ… Order Test in Postman

Order TESTs

2. βœ… Complete Migration and update of camelCase to snake_case in Terminal

Updated Orders Migration

3. βœ… Orders by Buyer Address

ORDER BY BUYER ADDRESSS

4. βœ… Orders by Seller Address

Order By seller address

5. βœ… Get Order by ID

Get order by id

6. βœ… Create Order

Create Order

7. βœ… Update Order Status

Update Order


Copy link
Contributor

@derianrddev derianrddev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Thank you very much!

@derianrddev derianrddev merged commit d8fb859 into Kaizenode:main Apr 28, 2025
1 of 2 checks passed
@derianrddev derianrddev added backend ODHack13 This issue will be available ONLY during the ODHack13 labels Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend ODHack13 This issue will be available ONLY during the ODHack13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Implement Orders Module (GraphQL API)

2 participants