Comments (9)
@chrissm79 Great video and project. I'm curious on a video about using this without Relay, and docs about DataLoaders!
from lighthouse.
Video Walkthrough
Example Repo
I'll either create a video explaining the DataLoader or add a description here when I can!
from lighthouse.
- Neither of these rely on Relay (I'm using them w/ Apollo)
- I have moved onto Subscriptions (actually have it working w/ Apollo just need to optimize it). I'll leave another comment here with some details when I can set aside a bit of time and hopefully answer any questions you have!
3.This is a fantastic idea! I'll create a project and and push it to a public repo then try and knock out a video(s) to go along with it.
Sorry for the delays! Work/Life are making this a primarily weekend project but hopefully I can get things rolling soon!
from lighthouse.
Hey @chrissm79 ,
I'm a while behind in the replies but great video; Cleared a few things up for sure!
I'm really curious about the DataLoaders now so would love to have a new branch on the example repo that uses these.
As a side note; The reason I've been so late in replying is because I've been trying out various graphql implementations in Node and honestly; for usability none of the implementations out there can touch lighthouse for ease of use! Great job man!
from lighthouse.
@hailwood Thanks, I appreciate it! I'll try to create a new repo (or just branch off the existing example) and get some data loaders in there for people to take a look at.
Side Note: I tried out Node as well and kinda fell in love with graphql-sequelize. Although it doesn't have a generator, I don't need to create many resolvers (if any). I might make a lighthouse-js implementation to integrate w/ AdonisJS (Laravel style node framework) or a boiler plate based of this project.
from lighthouse.
@joshmanders Thanks for the feedback! I'll create a repo first that shows how to use the Dataloaders, then I'll try to knock out a video on a weekend to go a bit in depth with it.
I'm not the happiest w/ the API as it currently stands but it does work. The problem I had was that the original implementation (which is based off of Facebook's Dataloader) doesn't make it easy to include arguments. So if you had the following connection
employees {
edges {
node {
# ...
}
}
}
that's not a problem, but if it was this:
employees(limit: 10) {
edges {
node {
# ...
}
}
}
There's no clear way to include the limit:10
.
from lighthouse.
I've never seen that framework before; It looks great.
graphql-sequelize looked pretty good when I look into it; but I hate sequelize with a passion; I also looked into knex/bookshelfjs/objection.js but they just felt... messy?
I'm still wrapping my head around the dataloaders to be honest which is part of the reason I'm so interested to see how you do it here.
from lighthouse.
The Framework looks very interesting indeed. I'm just interested @chrissm79 : Are you actually just using AdonisJS now? And what does that mean for lighthouse?
We are planning a big project right now and want to make sure we bet on the right horse.
folklore/laravel-graphql has Relay support now and that would be a good option too, yours is better documented and has the better style though.
I see hailwood is actually doing a lot of work. Are you in the core team now as well?
A lot has changed for relay in the last month with Relay Modern coming out and them finally deciding on subscription implementation.
It would be nice, if we could benefit from that.
I'm torn myself between laravel and a nodejs approach, that's why I'm asking.
I like my PHP backend, but maybe with new technologies like Graphql it is easier to go for an all nodejs/javascript approach to get a modern stack.
from lighthouse.
Refer to #66
from lighthouse.
Related Issues (20)
- Programmatically defined types cannot be found or overwrited while parsing .graphql file HOT 3
- @guard directive in fields but I always get "Unauthenticated" error. HOT 1
- Multiple queries / mutations in single request stop at first error HOT 3
- I faced issue lighthouse middleware HOT 1
- work with Multiple database connection HOT 1
- NOT_LIKE operator not working HOT 1
- ебаные пидорасы
- Directives for root types HOT 3
- Schema cache leaks memory with Laravel Octane HOT 1
- I have problems with many-to-many connections
- GraphQL integration in Laravel Repository Pattern
- Can not solve multiple file upload
- [FEDERATION] error SATISFIABILITY_ERROR when check the schema HOT 2
- `@in` directive breaks if client sends null HOT 1
- "No query results for model [App\\Models\\Permission]." using @create mutation HOT 4
- When using throttle directive how can the client be informed when they can retry again etc. HOT 3
- `@can` directive improvements HOT 1
- Only allow deletion of related models in nested mutations
- `@can` with `injectArgs: true` doesn't inject args passed as variables HOT 3
- laravel lighthouse graphql getting error Content-Type multipart/form-data HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse.