Skip to content

Commit bfba31f

Browse files
Update backend graphQL resolvers for Project level/type (OWASP#976)
* Resolves the type and level fields in the project node. * Update code --------- Co-authored-by: Arkadii Yakovets <arkadii.yakovets@owasp.org>
1 parent 759b86b commit bfba31f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/apps/owasp/graphql/nodes/project.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ class ProjectNode(GenericEntityNode):
1818
issues_count = graphene.Int()
1919
key = graphene.String()
2020
languages = graphene.List(graphene.String)
21+
level = graphene.String()
2122
recent_issues = graphene.List(IssueNode)
2223
recent_releases = graphene.List(ReleaseNode)
2324
repositories = graphene.List(RepositoryNode)
2425
repositories_count = graphene.Int()
2526
topics = graphene.List(graphene.String)
27+
type = graphene.String()
2628

2729
class Meta:
2830
model = Project

0 commit comments

Comments
 (0)