Skip to content

Commit 6704f80

Browse files
jbl428imdudu1
andcommitted
docs: include graphql decorator
Co-authored-by: imdudu1 <cd80@kakao.com>
1 parent 30d3819 commit 6704f80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This library is inspired by the HTTP interface in Spring 6 and provides a simila
1313
## Features
1414

1515
- Provides a simplified and declarative way of creating HTTP services.
16+
- Supports both REST and GraphQL requests.
1617
- Provides a concise syntax for handling query parameters, path variables, request headers, request bodies, and forms.
1718
- Offers integration with [class-transformer](https://github.com/typestack/class-transformer) to facilitate data
1819
transformation.
@@ -82,6 +83,9 @@ export class AppModule {
8283
- `@{HTTP Method}Exchange(path: string)`: Marks the method as an HTTP request method, with `path` being the request's
8384
path or full URL.
8485

86+
- `@GraphQLExchange(query: string, url = '/graphql')`: Marks the method as a GraphQL request method, with `query` being
87+
the GraphQL query and `url` being the GraphQL endpoint.
88+
8589
- `@ResponseBody(dto: ClassConstructor, options?: ClassTransformOptions)`: Specifies the response DTO using a class
8690
constructor and options from the `class-transformer` library.
8791

0 commit comments

Comments
 (0)