fn build_query_payload( template: &str, project_path: &str, cursor: Option<&str>, ) -> Value
Builds a GraphQL query with the given project path and optional cursor for pagination.