thdxr
11/11/2021, 8:53 PMPost
with functions like Post.fromAuthor(author)
But it's possible the query is asking for posts for a specific author, the comments, and the first name of each commenter. That turns into Post.fromAuthorWithCommentsWithCommenterFirstName()
Of course there's a lot of ways to simplify this, for example using a builder pattern, but how do people think about this general situation?
I don't want to write build a sql statement in my API layer because I want to create seperation so refactoring database details don't require API changes...but makes me wonder if DDD principles even map well to serverlessthdxr
11/11/2021, 8:55 PMthdxr
11/11/2021, 8:55 PMDamjan
11/11/2021, 9:23 PMquery {
profileOrganisations(first:5, filter: { profileSlug__eq: "lvmh" }) {
edges {
node {
_id
title
keyPeople(first: 2, filter:{
profileRelationTypeId__eq:1
}){
edges{
node{
_id
title
}
}
}
}
}
}
}
Damjan
11/11/2021, 9:24 PMOmi Chowdhury
11/11/2021, 9:28 PMDamjan
11/11/2021, 9:31 PMDamjan
11/11/2021, 10:06 PMDamjan
11/11/2021, 10:08 PMthdxr
11/11/2021, 10:46 PMthdxr
11/11/2021, 10:46 PMDamjan
11/11/2021, 10:47 PMDamjan
11/11/2021, 10:48 PMthdxr
11/11/2021, 10:49 PMDamjan
11/11/2021, 10:52 PMDamjan
11/11/2021, 10:53 PMthdxr
11/11/2021, 10:53 PMopts
object that contains all the ways you can filter or ask for nested data. It all doesn't feel just right thoughthdxr
11/11/2021, 10:54 PMthdxr
11/11/2021, 10:55 PMoperation
for each field and once it figures out all the operations it needs to do, it can intelligently combine them to execute them efficientlyDamjan
11/11/2021, 10:56 PMDamjan
11/11/2021, 10:59 PMDamjan
11/11/2021, 11:00 PMthdxr
11/11/2021, 11:01 PMthdxr
11/11/2021, 11:01 PMDamjan
11/11/2021, 11:03 PMDamjan
11/11/2021, 11:06 PMDamjan
11/11/2021, 11:06 PMthdxr
11/12/2021, 3:06 AMOmi Chowdhury
11/12/2021, 3:15 AMOmi Chowdhury
11/12/2021, 3:17 AMthdxr
11/12/2021, 3:19 AMthdxr
11/12/2021, 3:20 AMthdxr
11/12/2021, 3:20 AMOmi Chowdhury
11/12/2021, 3:22 AMthdxr
11/12/2021, 3:24 AMOmi Chowdhury
11/12/2021, 3:25 AMOmi Chowdhury
11/12/2021, 3:28 AMthdxr
11/12/2021, 10:35 PMOmi Chowdhury
11/12/2021, 10:37 PMthdxr
11/12/2021, 10:42 PMOmi Chowdhury
11/12/2021, 11:02 PMthdxr
11/12/2021, 11:06 PMOmi Chowdhury
11/12/2021, 11:17 PM