Skip to content

Commit aaed72e

Browse files
committed
docs: clarify use of Joi is an example only
1 parent 76e8306 commit aaed72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class PersonConnectionBuilder extends ConnectionBuilder<
114114
// A cursor sent to or received from a client is represented as a base64-encoded, URL-style query string containing
115115
// one or more key/value pairs describing the referenced node's position in the result set (its ID, a date, etc.)
116116
// Validation is optional, but recommended to enforce that cursor values supplied by clients must be well-formed.
117-
// See documentation for Joi at https://joi.dev/api/?v=17#object
117+
// This example uses Joi for validation, see documentation at https://joi.dev/api/?v=17#object
118118
// The following schema accepts only an object matching the type { id: string }:
119119
const schema: Joi.ObjectSchema<PersonCursorParams> = Joi.object({
120120
id: Joi.string().empty('').required(),

0 commit comments

Comments
 (0)