Skip to content

Commit

Permalink
Update backend graphQL resolvers for Project level/type (OWASP#976)
Browse files Browse the repository at this point in the history
* Resolves the type and level fields in the project node.

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
  • Loading branch information
ahmedxgouda and arkid15r authored Mar 2, 2025
1 parent 759b86b commit bfba31f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/apps/owasp/graphql/nodes/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ class ProjectNode(GenericEntityNode):
issues_count = graphene.Int()
key = graphene.String()
languages = graphene.List(graphene.String)
level = graphene.String()
recent_issues = graphene.List(IssueNode)
recent_releases = graphene.List(ReleaseNode)
repositories = graphene.List(RepositoryNode)
repositories_count = graphene.Int()
topics = graphene.List(graphene.String)
type = graphene.String()

class Meta:
model = Project
Expand Down

0 comments on commit bfba31f

Please sign in to comment.