Web Developer
Currently coding Daffy.org
Previously @prmkr, @platzi (YC W15), @vercel, and @able_co.
Organizer of @techtalks_pe.
Repos are my own.
A Node.js framework for creating GraphQL API servers easily and without a lot of boilerplate.
Home Page: https://github.com/sergiodxa/grial/wiki
License: MIT License
In development the server should implement the Hot Reload.
By removing the file extension from the import of e.g.resolvers.js
we'd be able to import resolvers.js
or resolvers/index.js
which acts as an entry point and reexports all resolvers.
I've seen that you have basically implemented the same concept for schema.ggl|grapgl
and files within the schemas/*.ggl|graphql
folder and it's a common concept to structure your application.
I'll help with a implementation in the future, just let me know what do you think…
Implement a connector for the PostgreSQL driver.
Right now the code is not tested, we need at least the @grial/server and @grial/utils packages tested.
Hi, i'm very interested in your project, but unfortunately can't try it out due to the error i'm getting from npm install
(other packages are installed fine on the same machine).
Any idea how to fix the problem?
Just a quick heads up:
followed all steps in the tutorial on Medium but kept getting error even after removing /node_modules
and reinstalling dependencies:
> grial start
module.js:487
throw err;
^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:485:15)
Only yarn add lodash
resolved this issue and everything worked according to the tutorial.
Is this a correct behavior or should the Grial server work without loading the whole Lodash lib?
Guys, thank you for a great tool! Can we use Grial for production or is it a beta soft?
What would be the recommended way to handle authentication/authorization?
A tutorial would be much appreciated, perhaps using https://github.com/nmaro/ooth or https://github.com/kkemple/graphql-auth for example.
Implement a connector for the mysql driver.
Right now it's impossible to customize the context of each request in @grial/server, I want it to be customizable somehow. Also allow the customization of the WS server context.
Thanks for the awesome framework!
Could we save the connection to databases to reuse in other parts of the application?
Something like:
const MongoClient = require("mongodb");
const connectionCache = {};
async function mongodb(URL) {
if (connectionCache[URL]) return connectionCache[URL];
const connectionPromise = new Promise((resolve, reject) => {
MongoClient.connect(URL, (error, connection) => {
if (error) return reject(error);
resolve(connection);
});
});
connectionCache[URL] = connectionPromise;
return connectionPromise;
}
exports.mongodb = mongodb;
Test the @grial/connector-rethinkdb to be sure it works
Hi,
I just wanted to warn you that we can't foloow step 4 from the CONTRIBUTING.md
There is no 'build' script in package.json.
What is the best way to do it?
Bye
If it works, publish the RethinkDB connector.
Create a CLI tool that follow the create-*
name convention to start new projects with Grial and have the default files and some test files.
It could be a good idea to have Jest or another testing framework integrated in the CLI so you don't need to do it manually.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.