@@ -18,7 +18,7 @@ use isograph_schema::{
18
18
validate_entrypoints, CreateAdditionalFieldsError , FieldToInsert , NetworkProtocol ,
19
19
ProcessObjectTypeDefinitionOutcome , ProcessTypeSystemDocumentOutcome , RootOperationName ,
20
20
Schema , ServerEntityName , ServerObjectSelectable , ServerObjectSelectableVariant ,
21
- ServerScalarSelectable ,
21
+ ServerScalarSelectable , UnprocessedClientFieldItem , UnprocessedClientPointerItem ,
22
22
} ;
23
23
use pico:: Database ;
24
24
@@ -32,7 +32,13 @@ use crate::{
32
32
33
33
pub fn create_schema < TNetworkProtocol : NetworkProtocol > (
34
34
db : & Database ,
35
- ) -> Result < ( Schema < TNetworkProtocol > , ContainsIsoStats ) , Box < dyn Error > > {
35
+ ) -> Result <
36
+ (
37
+ Schema < TNetworkProtocol > ,
38
+ Vec < SelectionType < UnprocessedClientFieldItem , UnprocessedClientPointerItem > > ,
39
+ ) ,
40
+ Box < dyn Error > ,
41
+ > {
36
42
let ProcessTypeSystemDocumentOutcome { scalars, objects } =
37
43
TNetworkProtocol :: parse_and_process_type_system_documents ( db) ?;
38
44
@@ -104,6 +110,16 @@ pub fn create_schema<TNetworkProtocol: NetworkProtocol>(
104
110
}
105
111
}
106
112
113
+ Ok ( ( unvalidated_isograph_schema, unprocessed_items) )
114
+ }
115
+
116
+ pub fn process_iso_literals_for_schema < TNetworkProtocol : NetworkProtocol > (
117
+ db : & Database ,
118
+ mut unvalidated_isograph_schema : Schema < TNetworkProtocol > ,
119
+ mut unprocessed_items : Vec <
120
+ SelectionType < UnprocessedClientFieldItem , UnprocessedClientPointerItem > ,
121
+ > ,
122
+ ) -> Result < ( Schema < TNetworkProtocol > , ContainsIsoStats ) , Box < dyn Error > > {
107
123
let iso_literal_map = get_iso_literal_map ( db) ;
108
124
let contains_iso = parse_iso_literals ( db, iso_literal_map) ?;
109
125
let contains_iso_stats = contains_iso. stats ( ) ;
0 commit comments