The whole point of GraphQL is to define queries on the client-side, so you don't have to maintain any API end points on the server.
On the server, you need to define a GraphQL Schema, containing types and mutations. Then you can expose a GraphQL end point. This can be easily done by using something like express-graphql. Have a look at the GraphQL documentation or https://learngraphql.com/.
Hope that helps!