Skip to content

Commit 5317203

Browse files
committed
readme: document that alias works for relations too
1 parent ce5c1b4 commit 5317203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ class UserType extends GraphQLType
179179
'type' => Type::nonNull(Type::string()),
180180
'description' => 'The id of the user',
181181
// Use 'alias', if the database column is different from the type name.
182+
// This is supposed for discrete values as well as relations.
182183
// You can also use `DB::raw()` to solve more complex issues
183184
'alias' => 'user_id',
184185
],

0 commit comments

Comments
 (0)