in Prisma 1 was really nice use of subscrition with prisma.$subscribe - documentation. I look for same doc for Prisma#4.6 but in documentation is nothing about it and I found only notice that in Prisma#2 is still not implemented and maybe it will be there in future. Is there any body who know actual status how I can add to app this functionality? O what is correct place for include this now?
Dev stack:
DB ORM: Prisma#4.6, db: sqlite
Server: Fastify#4.9
GraphQL generator: NexusJS
Thank a lot
Petr
Prisma 2+ doesn't have native support for Prisma Subscriptions yet. There is a feature request for it here: #298.
There are some alternatives suggested in the feature request, I would recommend you to have a look at them.
Related
I am new to Deno. I was following a tutorial and I was learning about how to connect my Deno backend to MongoDB. If I am honest the Tutorial I am watching right is a little bit old and so many things changed since the video came out. Can someone help how I can connect to my MongoDB database?
Thank you
I tried to use dataAPI based on this struction but when I tried it with postmen the response I got was the URL is not found. And that was weird for me apparently the article is new. I tried to use MongoClient. But again I wasn't successful.
After talking to the Deno Discord community I understand that you need to add a couple of things. The URL that mongo would generate for you is something like this:
mongodb+srv://<username>:<password>#<cluster>/?retryWrites=true&w=majority.But your URL should be something like this: mongodb+srv://${user}:${pass}#${cluster}/?retryWrites=true&w=majority&authMechanism=SCRAM-SHA-1&authSource=admin.Again I really want to thank the Deno community, They are really fun to work with.
Our project which we actually developed in ReactJS, we are currently moving to NextJS.
Now we have the problem that our original method in ReactJS using MongoDB Realm and Apollo(GraphQL) to retrieve data does not work in NextJS due to the need of SSG and SSR.
After a long time of trying and searching for examples and introductions, we unfortunately haven’t found a solution yet. Now the question: Has anyone already done this or an example project that builds on NextJS, MongoDB Realm and Apollo(GraphQL)?
In case of need we can also use the SWR library. But we haven’t found any helpful (including SSG and SSR) and official examples explicitly for Realm.
I don't seen any clear way to query an outside GraphQL endpoint (i.e. https://somewebsite.com/graphql) for data. Has anyone else done this, and how did you do it?
I assume it requires you to build a custom plugin, but that seems overkill for such a simple need. I have searched the docs and this issue doesn't really ever get addressed. 🤔
In Gatsby V2 you don't need to create your own plugin.
What you need is a plugin called gatsby-source-graphql
gatsby-source-graphql uses schema stitching to combine the schema of a
third-party API with the Gatsby schema.
You can find more info here.
The answer is, as you mentioned, writing a new source plugin. This is how Gatsby gets the data into it's internal GraphQL structure to then query.
Plugins are, at their core, just additions to the gatsby-node, gatsby-browser, and gatsby-ssr files. So you could write the logic needed at the top of your gatsby-node file to avoid abstracting it out into it's own plugin.
If you're not so into writing plugins for gatsby, like me, have a look here.
It explains in detail how you query any graphQL server via the Gatsby sourceNode API and the use of graphql-request.
Helped me to get data for e.g. from graph.cool as well as GraphCMS.
The problem though is that you always have to write 2 different kinds of graphQL queries, as they are usually not compatible to Gatsby's relay style queries. But still easier than building a whole plugin.
After Parse communicated the close of it in the next year, they recommended to do some steps to migrate from their API / hosted MongoDB database to your server.
Basically I'm in this step:
To do this I followed the next tutorial, the steps Migrate Parse DB and Transfer Data.
Now my data is complete, but I can't use my app anymore. These are the latest logs I can see, it doesn't connect or respond:
so briefly I'm just migrating the Parse DB by now,
did I skip any step and that's why it's not working?
Thank you very much in advance.
EDIT:
I've seen two requests of closing, because it's "unclear", I'm trying to figure out how to proceed, because following the tutorial mentioned above or the one on Parse Blog. After following those steps, I can't get my app working due to the errors mentioned above.
Am I asking wrong?
Thank you ;)
There is currently a bug with the migration tool, which is not migrating data correctly. The Parse team are currently working on it.
Issue reported here: https://github.com/ParsePlatform/parse-server/issues/42
While googling this issue, I found this: MySQL Connector written by Karl Kraft. Has anyone tried it successfully? Is there any better libraries for this issue? Any tutorials?
I know I can access DBs through REST Web Services, but I have no PHP Programmers to configure it for me.
You will be so much happier if you just write a REST service. It is incredibly easy, especially on Rails. See this link.
In 6 minutes he shows you how to create a RESTful service that supports creating, updating, and deleting.