You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/api/Entities/index.mdx
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,17 @@ import PostHogLayout from '../../../../layouts/PostHogLayout.astro';
13
13
The query structure is simple, easy to use and inspired by SQL. Query often start with the keyword `FIND` followed by the entity type and then the condition.
14
14
15
15
```sql
16
-
FROM entity_type AS entity_variable WHERE condition
16
+
FROM entity_type AS entity_variable
17
+
WHERE condition
18
+
SELECT entity_variable, "Description"
17
19
```
18
20
19
21
## Example
20
22
21
23
```sql
22
-
FROM method_declaration AS md WHERE"@Deprecated"inmd.getAnnotation()
24
+
FROM method_declaration AS md
25
+
WHERE"@Deprecated"inmd.getAnnotation()
26
+
SELECT md, "Listing all deprecated methods"
23
27
```
24
28
25
29
### Alias syntax
@@ -28,7 +32,9 @@ The alias syntax is used to give a name to the entity. This is useful when the e
28
32
to use the alias to invoke the entity methods.
29
33
30
34
```sql
31
-
FROM method_declaration AS md WHERE md.<Entity method>
35
+
FROM method_declaration AS md
36
+
WHERE md.<Entity method>
37
+
SELECT md.<Entity Data>, "Example description"
32
38
```
33
39
34
40
Learn more about the entity methods below in the API Index.
0 commit comments