Load fileUrl on demand for evidence
Fix #168 Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
0a5524ce5d
commit
25b330f948
14
apps/console/src/hooks/graph/EvidenceGraph.ts
Normal file
14
apps/console/src/hooks/graph/EvidenceGraph.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { graphql } from "relay-runtime";
|
||||
|
||||
export const evidenceFileQuery = graphql`
|
||||
query EvidenceGraphFileQuery($evidenceId: ID!) {
|
||||
node(id: $evidenceId) {
|
||||
... on Evidence {
|
||||
id
|
||||
mimeType
|
||||
filename
|
||||
fileUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user