Comments (6)
@XPOL555 I cannot really give you an estimate for v4 release but it is definitely soon (probably in November).
You can start using the 4.x-dev version. There will not be any breaking changes before 4.0 is released.
I only plan to fix #103, implement this feature and add a way to add a GraphQL field directly on a magic property (that could be useful to ease the integration with Eloquent)
from graphqlite.
@XPOL555 don’t hesitate to use the « dev-master » version: it is really stable ;)
from graphqlite.
I think its a bad idea, its adding complexity for nothing, instead use DI.
class MyQuery
{
private $session;
public function __construct(Session $session)
{
$this->session = $session;
}
/** @Query */
public function getUser(): string
{
return $this->session->getUser()->getName();
}
}
If you go this way, the graphqlite is going to turn into DIC, i think it's not design in this way.
from graphqlite.
Hi @moufmouf, is this the last issue needed for v4? I'm really interested in this project since i want to bundle into my laravel 6 application. Is there any estimate on when the v4 will be available?
Thank you for your amazing work!
from graphqlite.
@moufmouf @gulien great! Thank you guys!
from graphqlite.
@fezfez I still gave this a try (see #202).
I understand that you can clearly inject the "session" in your constructor and fetch the current user this way, but this is framework specific. And GraphQLite is framework agnostic.
I envision the possibility to create third party packages that would contain queries / mutations that could be used in any framework. Adding this InjectUser
annotation allows me to access the current user, whatever the framework I'm using.
from graphqlite.
Related Issues (20)
- Field nullable union type is throwing an error HOT 1
- Performance problem even for small query on big schema. HOT 33
- Improve #[InjectUser] to throw authentication errors HOT 1
- First party support for `void` return type HOT 3
- Please, publish a new version HOT 1
- Extension packages are unmaintained or don't support latest features HOT 11
- doctrine/annotations should be upgraded to v2 HOT 2
- Mutability concerns HOT 5
- Cleanup and deprecate confusing annotations HOT 2
- New patch version HOT 3
- Mapping multiple php object representations for a single resource to one graphql ObjectType HOT 4
- Automatic query complexity HOT 1
- Empty request body parsing error for automatic persisted queries HOT 14
- prefetchMethod does not work HOT 12
- Arguments description in schema HOT 3
- Undocumented Error or posible dead code HOT 3
- ExtendType and Type with class argument don't work
- Defining fields in type by trait from different namespace ends with error for relative type declarations HOT 2
- Weird behaviour around __call HOT 1
- Cannot use custom naming on an Input type that's also a regular Type 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 graphqlite.