File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,38 @@ AssemblyScript if you prefer. For AssemblyScript usage, refer to the
202202    modus dev
203203    ``` 
204204
205-     Modus generates a GraphQL API that you can interact with however you like.
206-     We provide you with an exploration tool at ` http://localhost:8686/explorer ` 
207-     for testing your functions.
205+     Modus automatically generates a GraphQL API from your functions.
206+     Since your function is named ` GatherIntelligence() ` , it becomes a GraphQL query field called ` gatherIntelligence ` .
207+ 
208+     Open the Modus API Explorer at ` http://localhost:8686/explorer `  to test your function.
209+     The explorer is fully GraphQL-compatible, so you can issue this query:
210+ 
211+     ``` graphql 
212+     query  {
213+       gatherIntelligence  {
214+         quote 
215+         author 
216+         analysis 
217+       }
218+     }
219+     ``` 
220+ 
221+     You'll receive a response like:
222+ 
223+     ``` json 
224+     {
225+       "data" : {
226+         "gatherIntelligence" : {
227+           "quote" : " The only way to do great work is to love what you do." 
228+           "author" : " Steve Jobs" 
229+           "analysis" : " 
230+             This emphasizes that passion and genuine interest in your work are fundamental drivers of excellence. 
231+             When you love what you do, the effort required for mastery feels less burdensome and innovation flows more naturally. 
232+           " 
233+         }
234+       }
235+     }
236+     ``` 
208237
209238    Your function now:
210239    - Fetches data from external APIs
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments