question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apollo Integration

See original GitHub issue

Issue Description

Hello,

I used to use Prisma alot with Apollo, and I’d like to completely replace Prisma with Cruddl, but I have a few questions:

The reason for asking this is because currently (as far as the docs go), I’d have to setup a GraphQL server (Yoga or Apollo) with Cruddl from a GraphQL schema thats written by the developer, then another graphql server has to be made with custom resolvers, and rewrite the typeDefs (too much repetition) to get it all working the way prisma operates now.

Using the schema file as the typeDefs for Apollo server results in missing directives errors

Is there any way to shorten this process? i.e. Ability to overwrite resolvers in the schema generated by Cruddl as I’m aware that Apollo has addResolveFunctionsToSchema({ schema, resolvers }) however there is no API to access the data directly i.e. with Prisma you could do something like: users: (parent, args, ctx, info) => ctx.db.users(args, info)

Forgive me if the issue is straight forward, I’ve spent a few days playing around, researching, reading through the docs but this issue isn’t referenced anywhere

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
itsezccommented, Sep 13, 2019

A demo application (with authentication, custom resolvers) etc. would be awesome for beginners to show / explain the features and limitations of Cruddl, hoping on this with the v1 release.

1reaction
robross0606commented, Sep 13, 2019

I think I have a similar situation in our setup. A good portion of our schema will be handled by cruddl. However, some things still need to be handled manually. This is especially true if not all of your graphql API is serviced by Arango. In our case, a portion of the API is a proxy for REST calls, while some serve other functional needs (testing, health check, etc.). My thinking right now is that some combination of schema stitching (merge-graphql, etc.) and/or federation techniques might get me there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrations - Apollo.io
Apollo integrates seamlessly and enhances your existing stack. Optimize your current workflows through integrations with LinkedIn, Gmail, Salesforce, HubSpot, ...
Read more >
View integrations - Apollo GraphQL Docs
Apollo Client's built-in React support allows you to fetch data from your GraphQL server and use it in building complex and reactive UIs...
Read more >
Apollo Integrations | Connect Your Apps with Zapier
Instantly connect Apollo with the apps you use everyday. Apollo integrates with 5000 other apps on Zapier - it's the easiest way to...
Read more >
Apollo Integrations: 1,886 Ready-To-Activate ️ Integrations
Integrate Apollo with 1000+ Apps in just 1 Click. 10000+ Customers. Live Chat Support. 18x - 33x Less Expensive. Try Now For Free!...
Read more >
Apollo Email Integration - Vidyard Video Integrations
Record & share videos in Apollo.io to engage with contacts at scale. Improve communication & drive more revenue with Vidyard's Apollo integration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found