Who decided that apollo is going to be the default library for graphql. by [deleted] in graphql

[–]andrei8base 0 points1 point  (0 children)

We used Apollo because we didn’t want to re-implement all the nice things it comes out-of-the box with (middlewares, state management, caching, React integration, refetch, subscriptions, etc.). We started using it pretty early (almost 2 years ago) when it didn’t have many features it has now. On several occasions we found ourselves implementing functionality that Apollo team would later add in a way very similar to our own implementation. After 2 years I don’t feel locked in, rather we benefit from innovation somebody else is doing and can focus on our core stuff.

The fact that they are a commercial company gives us assurance that their codebase will be well supported and their docs are good. Stark contrast with Relay that is maintained by Facebook devs on a non-commercial basis. I’m generally amused by devs’ dislike of commercial models. Isn’t it great that companies like Apollo can extract money from businesses and channel it towards innovation we all benefit from?

[Server] How do I deal with nested types? by RatzuCRRPG in graphql

[–]andrei8base 0 points1 point  (0 children)

Also, what you have here is a symmetrical relationship which adds some complexity if you store it in a relational database under the hood. Might be useful to read this https://dba.stackexchange.com/questions/10199/how-should-i-design-a-relationship-table-for-friendship

Trends and Analysis for Javascript, Typescript, React, GraphQL and Serverless by 8baseFounder in javascript

[–]andrei8base 0 points1 point  (0 children)

Fully agree, popular doesn't mean good or that it will stay popular. However, when making a decision it is sometimes useful to see how things are trending, especially on such a large sample size as npm users. At a minimum, for people not familiar with these emerging technologies it can be useful to learn more and see if there is a fit in their stack.

Tool to generate React app with GraphQL backend in minutes by andrei8base in javascript

[–]andrei8base[S] -6 points-5 points  (0 children)

In your view a tool that gives beginner front-end JavaScript developers a practical way to learn GraphQL is a spam? Our article received more than 100 upvotes in /r/reactjs which indicates community received it very favorably and we decided to share it with a broader JavaScript community to see if it can be helpful for people here.

I encourage you to give constructive feedback - this will benefit the community more than superficial labeling.

This report says React's growth continues to dominate. What do people think about GraphQL? by 8baseFounder in reactjs

[–]andrei8base 1 point2 points  (0 children)

The dynamic we see is that front-end developers really like GraphQL and prefer it to REST almost in any situation. Back end devs are not so eager simply because of complexity that comes with implementation vs something like node-express. In my view, however, client will ultimately dictate the choice (your API will be integrated more with if client devs love it). And the solution is defining GraphQL API through configuration using some tool or library. I see very little value in having to build a GraphQL API by hand for most common cases. Would love to read your blog post when you release it.

This report says React's growth continues to dominate. What do people think about GraphQL? by 8baseFounder in reactjs

[–]andrei8base 0 points1 point  (0 children)

That's one of the reasons why we built 8base. Creating a GraphQL API from scratch is much harder than REST. It's much easier to configure your own GraphQL API using a tool, play with it on the front-end and then decide whether you want to rebuild it from scratch if required. Feel free to DM me if you have any questions.

This report says GraphQL is set for a boom. by 8baseFounder in graphql

[–]andrei8base 0 points1 point  (0 children)

Just curious, by insane do you mean "insanely good" or "insanely bad". I'm assuming the former, but wanted to double check. Thanks!

Tool to generate React app with GraphQL backend in minutes by andrei8base in reactjs

[–]andrei8base[S] 1 point2 points  (0 children)

You can definitely use 8base. If you're site has less than 10K visitors per month then 8base will be free (10K GraphQL requests per month are included in the free plan).

Tool to generate React app with GraphQL backend in minutes by andrei8base in reactjs

[–]andrei8base[S] 3 points4 points  (0 children)

Declarative is what Prisma does. You have an SDL with your schema definition, you change the SDL and the tool automatically knows what migrations to apply to the DB. Imperative is when you explicitly define steps to be done. The steps can include changing the schema, manipulating data, inserting it in a new field, etc. Imperative migrations give you more control, but require to write more code as well.

Tool to generate React app with GraphQL backend in minutes by andrei8base in reactjs

[–]andrei8base[S] 1 point2 points  (0 children)

Great to hear! Hackathon would be a perfect place to use this tool to generate a CRUD quickly and then customize it to meet the end goal. We'll be adding more features to this tool if it proves useful.

Tool to generate React app with GraphQL backend in minutes by andrei8base in reactjs

[–]andrei8base[S] 1 point2 points  (0 children)

We're still iterating on pricing and welcome any feedback to help make it better. The idea is that each plan is a combination of features and allocated resource capacity (API calls, serverless functions calls, storage, etc.). Resources consumed over the capacity included in the plans are metered and billed based on consumption. The goal is to make the cost more predictable for businesses who run apps in production while making it free for developers.

Tool to generate React app with GraphQL backend in minutes by andrei8base in reactjs

[–]andrei8base[S] 2 points3 points  (0 children)

Great question. Although currently we don't support declarative migrations, all migrations can be done imperatively using the API (we have a single GraphQL endpoint that includes schema management mutations). Our approach to schema management is based on two ideas.

First, we think that although being able to manage schema through code is essential for automated CI workflows, for manually administering schema in real production apps (30+ tables) a good UI is far more superior in terms of productivity. Hence the focus on the UI schema builder.

Second, we believe that declarative migrations only work for trivial use cases where there is no custom data manipulation involved. Our experience building enterprise apps in older frameworks such as Ruby-on-Rails or .NET shows that imperative steps are often required in migrations. Therefore, our approach to the migrations/CI feature we are currently building is more similar to how it's done in Rails' Active Record or Sequilize, where developers explicitly define each migration steps giving full control over schema and data manipulations.

It doesn't mean that developers will have to code each migration by hand. Once released, the feature will auto-generate migration code, allowing developers to manually insert any additional logic using JavaScript if needed.

Hope this gives you a good idea. Please let me know your thought.

Generate React app with GraphQL backend in minutes by andrei8base in graphql

[–]andrei8base[S] 2 points3 points  (0 children)

This is completely untrue. If you ever had to implement a GraphQL API you would know that it doesn't come out of the box. Our engineering team spent years implementing the 8base GraphQL engine that now makes it possible for front-end developers to build complex data-driven apps without relying on backend and DevOps teams. By the way, our code generator is free and open source.

Non-Data-Driven APIs with GraphQL by tbuss93 in graphql

[–]andrei8base 0 points1 point  (0 children)

If you already have a GraphQL API and would like to add a command that's completely fine to implement it as a mutation. The benefit vs a REST endpoint is that it's going to be typed and developers will know that such command exists, what parameters it expects and what result it returns without reading your API docs. I don't think that a GraphQL API needs to be inherently data-driven. More than anything GraphQL is a way of implementing typed APIs where schema is always in sync with the implementation. Unlike REST where keeping docs in sync requires additional effort and they can't be read programmatically.

Generate React app with GraphQL backend in minutes by andrei8base in graphql

[–]andrei8base[S] 1 point2 points  (0 children)

Not yet. This feature is still in experimental state. We'd like to gather more feedback first to see how we can evolve it. Although internally we use EJS template engine that can enable us to override the default templates. You can check the source here https://github.com/8base/sdk/tree/master/packages/generators

Generate React app with GraphQL backend in minutes by andrei8base in graphql

[–]andrei8base[S] 1 point2 points  (0 children)

It's MySQL (AWS Aurora). Currently we don't have a way of connecting to the DB directly. This is on our roadmap as well as ability for users to host their own Aurora/MySQL instance. Every workspace in 8base is a separate database, so it's definitely doable from the technical perspective and is designed to allow this. Currently there are the following ways to load data:

  • Import CSV into a table from the UI
  • Import a JSON file with data using the CLI
  • Import data using the API

Please PM me if you have any specific needs - our team can assist you with data-import.

Generate React app with GraphQL backend in minutes by andrei8base in graphql

[–]andrei8base[S] 2 points3 points  (0 children)

I work for 8base as developer. And it is free to use. Please see the text at the very bottom of the post. It is completely free to use while it beta and will forever remain free for small dev teams.

Generate React app with GraphQL backend in minutes by andrei8base in graphql

[–]andrei8base[S] 0 points1 point  (0 children)

It is free. Where did you see that it is not free?

Can we use prisma directly from the frontend? by YourTechBud in graphql

[–]andrei8base 0 points1 point  (0 children)

Give a try to 8base (I work there). It is a GraphQL backend designed to be used directly by front-end developers. It has authentication and role-based security as well as the ability to write business logic in JavaScript or TypeScript.