From d98524254fecd0b3bc8b182f43187acab992df62 Mon Sep 17 00:00:00 2001 From: kodemon Date: Fri, 25 Apr 2025 19:03:41 +0000 Subject: [PATCH] fix: readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2f75dc6..8803f5c 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,11 @@ As we can see in the above example we are defining a new `method` procedure with To be able to process relay requests on our server we create a `RelayApi` instance which consumes our relay routes. We do this by retrieving the procedure from the relay and attaching a handler to it. When we define new procedure methods we get a new instance which we apply to the api, this ensures that the changes to the procedure on the server only affects the relay on the server. ```ts -import { RelayApi, NotFoundError } from "@valkyr/relay"; +import { NotFoundError } from "@valkyr/relay"; import { relay } from "@project/relay"; -export const api = new RelayApi([ +export const api = relay.api([ relay .method("user:create") .handle(async ({ name, email }) => {