-
-
Notifications
You must be signed in to change notification settings - Fork 204
Query parmeter: fields not working with field "Created By" #546
Comments
I did some debugging, and found the reason is: No record is created in directus_relations table, so the API cannot find the detail of user. However, why no record is created in directus_relations table? |
@wellingguzman |
When we say "automatically" do we mean that it will automatically create the relationship (in |
The API should automatically set this relationship in "runtime" (not creating the relationship in the |
Here's my collection - ID: the default field API call = Response =
|
I pushed this patch cf67174, to automatically set the default relationship for users type. @Marcnuth + @KPChakravarthy this patch will fix this problem. |
The patch does fix the problem. |
Hey @Marcnuth – this is a known issue being tracked in a different ticket: https://github.com/directus/app/issues/1045 I'll leave this one closed and you can follow the progress in the other one. |
I created a collection named "pages", and the collection only have 4 field:
When I try to use the API:
The response is like:
In the response, the created_by only returns the ID of the user instead of the details of the user.
However, according to the docs, when I specify fields=*.*, the created_by field should be filled with details.
Note: My API version is the latest releases 2.0.4.
Please check this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: