Skip to content

Commit 0bd19b0

Browse files
committed
Refactoring EdgeCollection into Collection api
1 parent 9dc739d commit 0bd19b0

11 files changed

+747
-234
lines changed

edge.go

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// DISCLAIMER
3+
//
4+
// Copyright 2017 ArangoDB GmbH, Cologne, Germany
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// Copyright holder is ArangoDB GmbH, Cologne, Germany
19+
//
20+
// Author Ewout Prangsma
21+
//
22+
23+
package driver
24+
25+
// EdgeDocument is a minimal document for use in edge collection.
26+
// You can use this in your own edge document structures completely use your own.
27+
// If you use your own, make sure to include a `_from` and `_to` field.
28+
type EdgeDocument struct {
29+
From DocumentID `json:"_from,omitempty"`
30+
To DocumentID `json:"_to,omitempty"`
31+
}

edge_collection.go

-65
This file was deleted.

0 commit comments

Comments
 (0)