Skip to content

Commit 55a5bdd

Browse files
authored
deletethis
1 parent 2b3b8a8 commit 55a5bdd

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

app_frontend/data.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
export const userQuery = (userId) => {
2-
const query = `*[_type == "user" && _id == '${userId}' ]`;
3-
4-
return query;
5-
}
61

7-
export const searchQuery = (searchTerm) => {
8-
const query = `*[_type == "pin" && title match '${searchTerm}*' || category match '${searchTerm}*' || about match ]{
9-
10-
image {
11-
asset -> {
12-
url
13-
}
14-
} ,
15-
_id,
16-
destination,
17-
postedBy -> {
18-
_id,
19-
username,
20-
image
21-
},
22-
save[] {
23-
_key,
24-
postedBy -> {
25-
_id,
26-
username,
27-
image
28-
},
29-
},
30-
}`;
31-
return query;
32-
}
33-
34-
35-
export const feedQuery = `*[_type == '[pin]

0 commit comments

Comments
 (0)