IsList returns whether the predicate is of list type.
(pred string)
| 482 | |
| 483 | // IsList returns whether the predicate is of list type. |
| 484 | func (s *state) IsList(pred string) bool { |
| 485 | s.RLock() |
| 486 | defer s.RUnlock() |
| 487 | if schema, ok := s.predicate[pred]; ok { |
| 488 | return schema.List |
| 489 | } |
| 490 | return false |
| 491 | } |
| 492 | |
| 493 | func (s *state) HasUpsert(pred string) bool { |
| 494 | s.RLock() |
no test coverage detected