Skip to content

v1.1.0 - GraphQL API

Latest

Choose a tag to compare

@mbatchelor81 mbatchelor81 released this 06 Mar 03:24

Highlights

GraphQL API

  • Full GraphQL layer using Netflix DGS framework alongside REST API
  • User mutations: createUser, login, updateUser
  • Article and comment queries/mutations
  • Profile queries with follow state
  • Custom exception handler mapping domain errors to GraphQL error codes
  • Schema defined in src/main/resources/schema/schema.graphqls

Cursor Pagination

  • New CursorPageParameter with cursor, limit, and direction (NEXT/PREV)
  • CursorPager<T> result container with hasNext/hasPrevious
  • Node interface for pageable data objects
  • Supports both offset and cursor pagination modes

Bug Fixes

  • Fixed JWT token expiry returning 500 instead of 401
  • Fixed GraphQL stack trace leakage in error responses
  • Improved slug generation to avoid collisions

Security

  • GraphQL errors no longer expose internal stack traces
  • Auth exceptions properly map to UNAUTHENTICATED error code